[Python-checkins] cpython (3.2): Fix a test for SpooledTemporaryFile (added in issue #10355).

serhiy.storchaka python-checkins at python.org
Sun Feb 10 13:46:01 CET 2013


http://hg.python.org/cpython/rev/6e9210a092cf
changeset:   82126:6e9210a092cf
branch:      3.2
parent:      82123:66f92f76b2ce
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Feb 10 14:43:46 2013 +0200
summary:
  Fix a test for SpooledTemporaryFile (added in issue #10355).

files:
  Lib/test/test_tempfile.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -854,7 +854,7 @@
         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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list