diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 7d6923c5d2e..a90cd0ef0ff 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -854,7 +854,7 @@ class test_SpooledTemporaryFile(TC): self.assertTrue(f._rolled) self.assertEqual(f.mode, 'w+') self.assertIsNotNone(f.name) - self.assertEqual(f.newlines, '\n') + self.assertEqual(f.newlines, os.linesep) self.assertIsNotNone(f.encoding) def test_text_newline_and_encoding(self):