Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r52921:ad992ca38af4
Date: 2012-02-27 11:37 +0100
http://bitbucket.org/pypy/pypy/changeset/ad992ca38af4/
Log: fix syntax. The test is still skipped, but this happens also on
default
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
@@ -364,13 +364,13 @@
import sys, os
p = os.path.join(sys.path[-1], 'readonly')
try:
- os.chmod(p, 0555)
+ os.chmod(p, 0o555)
except:
skip("cannot chmod() the test directory to read-only")
try:
import readonly.x # cannot write x.pyc, but should not crash
finally:
- os.chmod(p, 0775)
+ os.chmod(p, 0o775)
def test__import__empty_string(self):
raises(ValueError, __import__, "")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit