Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff0ffb3

Browse files
committed
Make test_tmpfile() pass. (And hence test_os.py as a whole passes.)
tmpfile() now is a binary file.
1 parent 88e860c commit ff0ffb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_os.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ def test_tmpfile(self):
6161
return
6262
fp = os.tmpfile()
6363
fp.write("foobar")
64-
fp.seek(0,0)
64+
fp.seek(0)
6565
s = fp.read()
6666
fp.close()
67-
self.assert_(s == "foobar")
67+
self.assertEquals(s, b"foobar")
6868

6969
def test_tmpnam(self):
7070
import sys

0 commit comments

Comments
 (0)