Author: Alex Gaynor <alex.gay...@gmail.com>
Branch: kill-faking
Changeset: r59251:5c11c8cf8df7
Date: 2012-12-02 14:39 -0800
http://bitbucket.org/pypy/pypy/changeset/5c11c8cf8df7/

Log:    fix posix tests

diff --git a/pypy/module/posix/test/test_posix2.py 
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -51,7 +51,7 @@
 
 class AppTestPosix:
     spaceconfig = {
-        "usemodules": ["binascii", "struct"],
+        "usemodules": ["binascii", "struct", "rctime"],
     }
 
     def setup_class(cls):
diff --git a/pypy/module/posix/test/test_posix_libfile.py 
b/pypy/module/posix/test/test_posix_libfile.py
--- a/pypy/module/posix/test/test_posix_libfile.py
+++ b/pypy/module/posix/test/test_posix_libfile.py
@@ -1,24 +1,29 @@
+import os
+
 from pypy.tool.udir import udir
-import os
+
 
 def setup_module(mod):
     mod.path = udir.join('test_posix_libfile.txt')
     mod.path.write("this is a test")
 
-class AppTestPosix: 
-    spaceconfig = dict(usemodules=['posix'])
 
-    def setup_class(cls): 
+class AppTestPosix:
+    spaceconfig = {
+        "usemodules": ['posix', 'rctime'],
+    }
+
+    def setup_class(cls):
         cls.w_posix = cls.space.appexec([], """():
             import %s as m ; return m""" % os.name)
         cls.w_path = cls.space.wrap(str(path))
-    
-    def test_posix_is_pypy_s(self): 
-        assert self.posix.__file__ 
+
+    def test_posix_is_pypy_s(self):
+        assert self.posix.__file__
 
     def test_fdopen(self):
-        path = self.path 
-        posix = self.posix 
+        path = self.path
+        posix = self.posix
         fd = posix.open(path, posix.O_RDONLY, 0777)
         f = posix.fdopen(fd, "r")
         result = f.read()
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to