summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:44:14 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:44:14 (GMT)
commitbf95c143a29aa73eed91b630849432f1ff43d602 (patch)
tree23ea0b40de5e84e181c8acc18e02596eb12ecba4 /Lib/test
parent9fef188c9eea428a28e108c4ab6966c6c19a097a (diff)
parent497cee456c29202918739275fcc3d1bd0183ae06 (diff)
downloadcpython-bf95c143a29aa73eed91b630849432f1ff43d602.zip
cpython-bf95c143a29aa73eed91b630849432f1ff43d602.tar.gz
cpython-bf95c143a29aa73eed91b630849432f1ff43d602.tar.bz2
Fix a test for SpooledTemporaryFile (added in issue #10355).
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 7f4d5b9..b638d87 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -792,7 +792,7 @@ class TestSpooledTemporaryFile(BaseTestCase):
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):