diff options
| author | Inada Naoki <songofacandy@gmail.com> | 2021-02-26 02:09:06 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-26 02:09:06 (GMT) |
| commit | 9525a18b5bb317d9fb206c992ab62aa41559b0c8 (patch) | |
| tree | 6371d92749bdafd9fbc63493a6ef8cb6b08083f8 /Lib/test/test_gzip.py | |
| parent | 3150754f91fc1d15e3888e22c065672838a9c069 (diff) | |
| download | cpython-9525a18b5bb317d9fb206c992ab62aa41559b0c8.zip cpython-9525a18b5bb317d9fb206c992ab62aa41559b0c8.tar.gz cpython-9525a18b5bb317d9fb206c992ab62aa41559b0c8.tar.bz2 | |
bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)
Diffstat (limited to 'Lib/test/test_gzip.py')
| -rw-r--r-- | Lib/test/test_gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py index 1bb8f7a..1dcfa2b 100644 --- a/Lib/test/test_gzip.py +++ b/Lib/test/test_gzip.py @@ -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'') |
