[pypy-svn] r72065 - pypy/trunk/pypy/tool/test
afa at codespeak.net
afa at codespeak.net
Wed Mar 10 16:25:18 CET 2010
Author: afa
Date: Wed Mar 10 16:25:16 2010
New Revision: 72065
Modified:
pypy/trunk/pypy/tool/test/test_package.py
Log:
Attempt to fix the test when pypy-c is not compiled
(most buildbots run python2.5 where this module is skipped)
Modified: pypy/trunk/pypy/tool/test/test_package.py
==============================================================================
--- pypy/trunk/pypy/tool/test/test_package.py (original)
+++ pypy/trunk/pypy/tool/test/test_package.py Wed Mar 10 16:25:16 2010
@@ -2,13 +2,13 @@
import py
from pypy.tool.autopath import pypydir
from pypy.tool.package import main
-import tarfile
+import tarfile, os
def test_dir_structure():
# make sure we have sort of pypy-c
pypy_c = py.path.local(pypydir).join('translator', 'goal', 'pypy-c')
if not pypy_c.check():
- shutil.copy("/usr/bin/echo", pypy_c)
+ os.system("echo faked_pypy_c> %s" % (pypy_c,))
fake_pypy_c = True
else:
fake_pypy_c = False
More information about the Pypy-commit
mailing list