From: Petri Lehtinen Date: Wed, 26 Sep 2012 04:41:11 +0000 (+0300) Subject: #15222: Fix a test failure on Windows X-Git-Tag: v2.7.4rc1~533 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb2e8a7c01f5411e9b3c1bc02944e67f75d5b73b;p=thirdparty%2FPython%2Fcpython.git #15222: Fix a test failure on Windows --- diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index 84c6cdd1cc03..0696fef586cb 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -145,7 +145,7 @@ class TestMailbox(TestBase): 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__()