summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
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):