Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r52940:58feb84d8e37
Date: 2012-02-27 16:46 +0100
http://bitbucket.org/pypy/pypy/changeset/58feb84d8e37/

Log:    StringIO is no longer there, use cmd instead; fix the syntax of an
        octal number

diff --git a/pypy/module/imp/test/test_app.py b/pypy/module/imp/test/test_app.py
--- a/pypy/module/imp/test/test_app.py
+++ b/pypy/module/imp/test/test_app.py
@@ -25,7 +25,7 @@
 
     def test_find_module(self):
         import os
-        file, pathname, description = self.imp.find_module('StringIO')
+        file, pathname, description = self.imp.find_module('cmd')
         assert file is not None
         file.close()
         assert os.path.exists(pathname)
@@ -63,7 +63,7 @@
         assert not 
self.imp.is_frozen('hello.world.this.is.never.a.frozen.module.name')
 
 
-    def test_load_module_py(self):
+    def test_load_module_pyx(self):
         fn = self._py_file()
         descr = ('.py', 'U', self.imp.PY_SOURCE)
         f = open(fn, 'U')
@@ -164,7 +164,7 @@
         with open(file_name, "wb") as f:
             f.write(code)
         compiled_name = file_name + ("c" if __debug__ else "o")
-        chmod(file_name, 0777)
+        chmod(file_name, 0o777)
 
         # Setup
         sys_path = path[:]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to