[Python-checkins] cpython (2.7): #15222: Fix a test failure on Windows

petri.lehtinen python-checkins at python.org
Wed Sep 26 06:44:27 CEST 2012


http://hg.python.org/cpython/rev/a87ab9b0c9e5
changeset:   79192:a87ab9b0c9e5
branch:      2.7
parent:      79190:1b8e66ea3f89
user:        Petri Lehtinen <petri at digip.org>
date:        Wed Sep 26 07:41:11 2012 +0300
summary:
  #15222: Fix a test failure on Windows

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


diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -145,7 +145,7 @@
         key1 = self._box.add(self._template % 1)
         msg = self._box.get(key1)
         self.assertEqual(msg['from'], 'foo')
-        self.assertEqual(msg.fp.read(), '1\n')
+        self.assertEqual(msg.fp.read(), '1' + os.linesep)
 
     def test_getitem(self):
         # Retrieve message using __getitem__()

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


More information about the Python-checkins mailing list