[Python-checkins] cpython (merge 3.3 -> default): Fix a test for SpooledTemporaryFile (added in issue #10355).
serhiy.storchaka
python-checkins at python.org
Sun Feb 10 13:46:03 CET 2013
http://hg.python.org/cpython/rev/029011429f80
changeset: 82128:029011429f80
parent: 82125:12d75ca12ae7
parent: 82127:b5074ed74ec3
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Feb 10 14:44:43 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