summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:44:43 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:44:43 (GMT)
commit34a2a87d17ff1730946adf86d23a4737271e53b3 (patch)
tree0ae6a1b7044ae27fbfa3fb184fed8f374d300251 /Lib
parent02c2076bd557ba34da02345e1254f8083e746ff8 (diff)
parentbf95c143a29aa73eed91b630849432f1ff43d602 (diff)
downloadcpython-34a2a87d17ff1730946adf86d23a4737271e53b3.zip
cpython-34a2a87d17ff1730946adf86d23a4737271e53b3.tar.gz
cpython-34a2a87d17ff1730946adf86d23a4737271e53b3.tar.bz2
Fix a test for SpooledTemporaryFile (added in issue #10355).
Diffstat (limited to 'Lib')
-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 ecad944..c8d4b49 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):