From: Serhiy Storchaka Date: Sun, 10 Feb 2013 12:43:46 +0000 (+0200) Subject: Fix a test for SpooledTemporaryFile (added in issue #10355). X-Git-Tag: v3.2.4rc1~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=497cee456c29202918739275fcc3d1bd0183ae06;p=thirdparty%2FPython%2Fcpython.git Fix a test for SpooledTemporaryFile (added in issue #10355). --- diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 7d6923c5d2e5..a90cd0ef0ff1 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):