]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Try to fix test_tarfile under Windows
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 24 Nov 2013 00:55:05 +0000 (01:55 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 24 Nov 2013 00:55:05 +0000 (01:55 +0100)
Lib/test/test_tarfile.py

index 69e77f6de02b22b2fb36b2ea3039f922e3e88323..9d318100fa87fe44e2916a672193829752ba8a47 100644 (file)
@@ -1730,7 +1730,7 @@ class CommandLineTest(unittest.TestCase):
 
     def tarfilecmd(self, *args):
         rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args)
-        return out
+        return out.replace(os.linesep.encode(), b'\n')
 
     def tarfilecmd_failure(self, *args):
         return script_helper.assert_python_failure('-m', 'tarfile', *args)