[pypy-svn] r72360 - pypy/branch/kill-python-h/pypy/translator/c/test

arigo at codespeak.net arigo at codespeak.net
Thu Mar 18 11:11:43 CET 2010


Author: arigo
Date: Thu Mar 18 11:11:42 2010
New Revision: 72360

Modified:
   pypy/branch/kill-python-h/pypy/translator/c/test/test_standalone.py
Log:
This is not really about sparse files, and it's precisely
on Windows that it fails.  Rewrite the test so it can be
unskipped on Windows (and then it fails).


Modified: pypy/branch/kill-python-h/pypy/translator/c/test/test_standalone.py
==============================================================================
--- pypy/branch/kill-python-h/pypy/translator/c/test/test_standalone.py	(original)
+++ pypy/branch/kill-python-h/pypy/translator/c/test/test_standalone.py	Thu Mar 18 11:11:42 2010
@@ -205,16 +205,13 @@
         #py.process.cmdexec(exe)
 
     def test_standalone_large_files(self):
-        from pypy.module.posix.test.test_posix2 import need_sparse_files
-        need_sparse_files()
         filename = str(udir.join('test_standalone_largefile'))
         r4800000000 = r_longlong(4800000000L)
         def entry_point(argv):
             fd = os.open(filename, os.O_RDWR | os.O_CREAT, 0644)
             os.lseek(fd, r4800000000, 0)
-            os.write(fd, "$")
             newpos = os.lseek(fd, 0, 1)
-            if newpos == r4800000000 + 1:
+            if newpos == r4800000000:
                 print "OK"
             else:
                 print "BAD POS"



More information about the Pypy-commit mailing list