From: Antoine Pitrou Date: Sun, 24 Nov 2013 00:55:05 +0000 (+0100) Subject: Try to fix test_tarfile under Windows X-Git-Tag: v3.4.0b1~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b7b1e533e640f4b0427d61fa442111e6bf16fda;p=thirdparty%2FPython%2Fcpython.git Try to fix test_tarfile under Windows --- diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 69e77f6de02b..9d318100fa87 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -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)