Commit b9f45201 authored by Guido van Rossum's avatar Guido van Rossum

Make test_tmpfile() pass. (And hence test_os.py as a whole passes.)

tmpfile() now is a binary file.
parent c6c83524
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment