[pypy-commit] pypy default: 'typo'. The directory hierarchy created by the test is put in sys.path[0], not [-1]. This test has been silently skipped for ages probably

antocuni noreply at buildbot.pypy.org
Mon Feb 27 11:45:10 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r52922:b081147f76f3
Date: 2012-02-27 11:41 +0100
http://bitbucket.org/pypy/pypy/changeset/b081147f76f3/

Log:	'typo'. The directory hierarchy created by the test is put in
	sys.path[0], not [-1]. This test has been silently skipped for ages
	probably

diff --git a/pypy/module/imp/test/test_import.py b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -357,7 +357,7 @@
 
     def test_cannot_write_pyc(self):
         import sys, os
-        p = os.path.join(sys.path[-1], 'readonly')
+        p = os.path.join(sys.path[0], 'readonly')
         try:
             os.chmod(p, 0555)
         except:


More information about the pypy-commit mailing list