[pypy-svn] r64499 - pypy/trunk/pypy/module/_file/test

iko at codespeak.net iko at codespeak.net
Tue Apr 21 12:34:36 CEST 2009


Author: iko
Date: Tue Apr 21 12:34:34 2009
New Revision: 64499

Modified:
   pypy/trunk/pypy/module/_file/test/test_file.py
Log:
(iko, pedronis) make test of tell() more sensible



Modified: pypy/trunk/pypy/module/_file/test/test_file.py
==============================================================================
--- pypy/trunk/pypy/module/_file/test/test_file.py	(original)
+++ pypy/trunk/pypy/module/_file/test/test_file.py	Tue Apr 21 12:34:34 2009
@@ -145,7 +145,9 @@
         f = self.file(self.temppath, "r")
         f.seek(0L)
         f.readline()
-        assert f.tell() == 44L
+        pos = f.tell()
+        assert f.read(12L) == 'From: foo\n\n0'
+        f.seek(pos)
         assert f.read(12L) == 'From: foo\n\n0'
         f.close()
 



More information about the Pypy-commit mailing list