[pypy-svn] r75753 - pypy/trunk/pypy/tool/release/test
antocuni at codespeak.net
antocuni at codespeak.net
Fri Jul 2 10:54:25 CEST 2010
Author: antocuni
Date: Fri Jul 2 10:54:22 2010
New Revision: 75753
Modified:
pypy/trunk/pypy/tool/release/test/test_package.py
Log:
fix test_package, for the case when we run the test without having run a translation first
Modified: pypy/trunk/pypy/tool/release/test/test_package.py
==============================================================================
--- pypy/trunk/pypy/tool/release/test/test_package.py (original)
+++ pypy/trunk/pypy/tool/release/test/test_package.py Fri Jul 2 10:54:22 2010
@@ -26,9 +26,16 @@
assert prefix.join('README').check()
th = tarfile.open(str(builddir.join('test.tar.bz2')))
assert th.getmember('test/lib_pypy/syslog.py')
- assert th.getmember('test/include/Python.h')
- assert th.getmember('test/include/modsupport.inl')
- assert th.getmember('test/include/pypy_decl.h')
+
+ # the headers file could be not there, because they are copied into
+ # trunk/include only during translation
+ includedir = py.path.local(pypydir).dirpath().join('include')
+ def check_include(name):
+ if includedir.join(name).check(file=True):
+ assert th.getmember('test/include/%s' % name)
+ check_include('Python.h')
+ check_include('modsupport.inl')
+ check_include('pypy_decl.h')
finally:
if fake_pypy_c:
pypy_c.remove()
More information about the Pypy-commit
mailing list