summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:43:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:43:46 (GMT)
commit497cee456c29202918739275fcc3d1bd0183ae06 (patch)
tree2c8dd91a838c0baa5e8137512312f92609d7ca30
parent88efc52d7451ab648c9659e6be47cee34bf0ce43 (diff)
downloadcpython-497cee456c29202918739275fcc3d1bd0183ae06.zip
cpython-497cee456c29202918739275fcc3d1bd0183ae06.tar.gz
cpython-497cee456c29202918739275fcc3d1bd0183ae06.tar.bz2
Fix a test for SpooledTemporaryFile (added in issue #10355).
-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 7d6923c..a90cd0e 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):