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

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


http://hg.python.org/cpython/rev/b5074ed74ec3
changeset:   82127:b5074ed74ec3
branch:      3.3
parent:      82124:03b878d636cf
parent:      82126:6e9210a092cf
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Feb 10 14:44:14 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
@@ -792,7 +792,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