Try to fix test_tarfile under Windows

This commit is contained in:
Antoine Pitrou 2013-11-24 01:55:05 +01:00
parent 5e8c8091ee
commit 3b7b1e533e
1 changed files with 1 additions and 1 deletions

View 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)