[pypy-commit] pypy py3k: StringIO is no longer there, use cmd instead; fix the syntax of an octal number

antocuni noreply at buildbot.pypy.org
Mon Feb 27 17:00:33 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
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[:]


More information about the pypy-commit mailing list