diff --git a/Lib/test/test_base64.py b/Lib/test/test_base64.py index 7ff0db5cd04..49edf395f16 100644 --- a/Lib/test/test_base64.py +++ b/Lib/test/test_base64.py @@ -238,7 +238,7 @@ class TestMain(unittest.TestCase): with open(support.TESTFN, 'wb') as fp: fp.write(b'Yf9iCg==') output = self.get_output('-d', support.TESTFN) - self.assertEquals(output, b'a\xffb\n') + self.assertEquals(output.rstrip(), b'a\xffb')