summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-02-06 21:55:29 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-02-06 21:57:26 -0500
commit2af7e87b26754fea68adfd1b8aa51052d987e60c (patch)
tree3d81d1e79bebd529240629b9cd43c4f0e273046b /tests/test_cmdline.py
parente59da1bafafe4265188bb5c75c4e557dfbd47d90 (diff)
downloadpython-coveragepy-git-nedbat/better-combine-action.tar.gz
refactor: convert all skipping to pytest skipsnedbat/better-combine-action
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py6
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"]