diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-06 21:55:29 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-07 17:24:44 -0500 |
commit | c0921466d3d235f10be333da1f9cf523f4e2e24c (patch) | |
tree | 5e67f7e62db1048229a54e308885b935616b6e5a /tests/test_cmdline.py | |
parent | 465dace54a3f3300c0a86b527a8f77d0475fc895 (diff) | |
download | python-coveragepy-git-c0921466d3d235f10be333da1f9cf523f4e2e24c.tar.gz |
refactor: convert all skipping to pytest skips
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 0eb26cd0..d5141028 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -816,10 +816,9 @@ class CmdLineStdoutTest(BaseCmdLineTest): assert "without C extension" in out assert out.count("\n") < 4 + @pytest.mark.skipif(env.JYTHON, reason="Jython gets mad if you patch sys.argv") def test_help_contains_command_name(self): # Command name should be present in help output. - if env.JYTHON: - self.skipTest("Jython gets mad if you patch sys.argv") fake_command_path = "lorem/ipsum/dolor".replace("/", os.sep) expected_command_name = "dolor" fake_argv = [fake_command_path, "sit", "amet"] @@ -828,6 +827,7 @@ class CmdLineStdoutTest(BaseCmdLineTest): out = self.stdout() assert expected_command_name in out + @pytest.mark.skipif(env.JYTHON, reason="Jython gets mad if you patch sys.argv") def test_help_contains_command_name_from_package(self): # Command package name should be present in help output. # @@ -835,8 +835,6 @@ class CmdLineStdoutTest(BaseCmdLineTest): # has the `__main__.py` file's patch as the command name. Instead, the command name should # be derived from the package name. - if env.JYTHON: - self.skipTest("Jython gets mad if you patch sys.argv") fake_command_path = "lorem/ipsum/dolor/__main__.py".replace("/", os.sep) expected_command_name = "dolor" fake_argv = [fake_command_path, "sit", "amet"] |