Author: Antonio Cuni <anto.c...@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:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to