summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-09-15 23:54:52 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-09-15 23:54:52 (GMT)
commitd62269f9207ca9ac539c9216a9b41cab4f62d5e4 (patch)
tree2044573ff07d7643a808bfce68f840c47a0986c7 /Lib/test/test_os.py
parent9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164 (diff)
downloadcpython-d62269f9207ca9ac539c9216a9b41cab4f62d5e4.zip
cpython-d62269f9207ca9ac539c9216a9b41cab4f62d5e4.tar.gz
cpython-d62269f9207ca9ac539c9216a9b41cab4f62d5e4.tar.bz2
Fix Windows buildbot failures after r66469.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index f58aaf7..4897aaf 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -69,7 +69,8 @@ class FileTests(unittest.TestCase):
os.write(fd, memoryview(b"spam\n"))
os.close(fd)
with open(support.TESTFN, "rb") as fobj:
- self.assertEqual(fobj.read(), b"bacon\neggs\nspam\n")
+ self.assertEqual(fobj.read().splitlines(),
+ [b"bacon", b"eggs", b"spam"])
class TemporaryFileTests(unittest.TestCase):