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

afa at codespeak.net afa at codespeak.net
Thu Jan 29 15:24:16 CET 2009


Author: afa
Date: Thu Jan 29 15:24:16 2009
New Revision: 61450

Modified:
   pypy/trunk/pypy/module/posix/test/test_posix2.py
Log:
Fix test in module/posix when running on top of CPython 2.4.


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	Thu Jan 29 15:24:16 2009
@@ -24,6 +24,11 @@
     pdir.join('another_longer_file_name').write("test3")
     mod.pdir = pdir
 
+    # in applevel tests, os.stat uses the CPython os.stat.
+    # Be sure to return times with full precision
+    # even when running on top of CPython 2.4.
+    os.stat_float_times(True)
+
 def need_sparse_files():
     if sys.platform == 'darwin':
         py.test.skip("no sparse files on default Mac OS X file system")



More information about the Pypy-commit mailing list