[pypy-svn] r65382 - pypy/trunk/pypy/module/posix/test

afa at codespeak.net afa at codespeak.net
Sun May 24 18:13:22 CEST 2009


Author: afa
Date: Sun May 24 18:13:20 2009
New Revision: 65382

Modified:
   pypy/trunk/pypy/module/posix/test/test_posix2.py
Log:
"import os.path" masks the previous value of "os".
Be sure to test the right module.


Modified: pypy/trunk/pypy/module/posix/test/test_posix2.py
==============================================================================
--- pypy/trunk/pypy/module/posix/test/test_posix2.py	(original)
+++ pypy/trunk/pypy/module/posix/test/test_posix2.py	Sun May 24 18:13:20 2009
@@ -286,9 +286,9 @@
 
     def test_utime(self):
         os = self.posix
-        import os.path
+        from os.path import join
         # XXX utimes & float support
-        path = os.path.join(self.pdir, "test_utime.txt")
+        path = join(self.pdir, "test_utime.txt")
         fh = open(path, "w")
         fh.write("x")
         fh.close()



More information about the Pypy-commit mailing list