bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)

This commit is contained in:
Inada Naoki 2021-02-26 11:09:06 +09:00 committed by GitHub
parent 3150754f91
commit 9525a18b5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -775,7 +775,7 @@ class TestCommandLine(unittest.TestCase):
def test_decompress_infile_outfile_error(self):
rc, out, err = assert_python_failure('-m', 'gzip', '-d', 'thisisatest.out')
self.assertIn(b"filename doesn't end in .gz:", err)
self.assertEqual(b"filename doesn't end in .gz: 'thisisatest.out'", err.strip())
self.assertEqual(rc, 1)
self.assertEqual(out, b'')