From: Guido van Rossum Date: Wed, 13 Jun 2007 01:55:50 +0000 (+0000) Subject: Make test_tmpfile() pass. (And hence test_os.py as a whole passes.) X-Git-Tag: v3.0a1~769 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff0ffb3e4a2a234348b9446731754c95c339af4f;p=thirdparty%2FPython%2Fcpython.git Make test_tmpfile() pass. (And hence test_os.py as a whole passes.) tmpfile() now is a binary file. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 9673172ce6af..2ddda8ac3f82 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -61,10 +61,10 @@ class TemporaryFileTests(unittest.TestCase): 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