diff options
author | Guido van Rossum <guido@python.org> | 2007-06-13 01:55:50 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-13 01:55:50 (GMT) |
commit | ff0ffb3e4a2a234348b9446731754c95c339af4f (patch) | |
tree | 4db8aaa51ec78f7642daa71e491c113f58bbe04b /Lib/test/test_os.py | |
parent | 88e860c00584b74168ca486379dd04c07ed22fc4 (diff) | |
download | cpython-ff0ffb3e4a2a234348b9446731754c95c339af4f.zip cpython-ff0ffb3e4a2a234348b9446731754c95c339af4f.tar.gz cpython-ff0ffb3e4a2a234348b9446731754c95c339af4f.tar.bz2 |
Make test_tmpfile() pass. (And hence test_os.py as a whole passes.)
tmpfile() now is a binary file.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 9673172..2ddda8a 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 |