mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Make test_tmpfile() pass. (And hence test_os.py as a whole passes.)
tmpfile() now is a binary file.
This commit is contained in:
parent
88e860c005
commit
ff0ffb3e4a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue