[Python-3000-checkins] r55947 - python/branches/py3k-struni/Lib/test/test_os.py

guido.van.rossum python-3000-checkins at python.org
Wed Jun 13 03:55:51 CEST 2007


Author: guido.van.rossum
Date: Wed Jun 13 03:55:50 2007
New Revision: 55947

Modified:
   python/branches/py3k-struni/Lib/test/test_os.py
Log:
Make test_tmpfile() pass.  (And hence test_os.py as a whole passes.)
tmpfile() now is a binary file.


Modified: python/branches/py3k-struni/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_os.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_os.py	Wed Jun 13 03:55:50 2007
@@ -61,10 +61,10 @@
             return
         fp = os.tmpfile()
         fp.write("foobar")
-        fp.seek(0,0)
+        fp.seek(0)
         s = fp.read()
         fp.close()
-        self.assert_(s == "foobar")
+        self.assertEquals(s, b"foobar")
 
     def test_tmpnam(self):
         import sys


More information about the Python-3000-checkins mailing list