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.5~109^2~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb2e8a7c01f5411e9b3c1bc02944e67f75d5b73b;p=python #15222: Fix a test failure on Windows --- diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index 84c6cdd1cc..0696fef586 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__()