diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-21 12:38:07 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-21 12:38:07 -0400 |
commit | 9e2761b7580a152753ee107624f28d1ce74eabe6 (patch) | |
tree | 7026d30a7ffbed830eb1f21881a7cdb890879241 | |
parent | 6b1a762095c322e8b41adfd561e22ea43aa3c449 (diff) | |
download | python-coveragepy-9e2761b7580a152753ee107624f28d1ce74eabe6.tar.gz |
Skip these new tests on Jython
-rw-r--r-- | tests/test_cmdline.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 7ef474e..9d64d86 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -645,6 +645,8 @@ class CmdLineStdoutTest(BaseCmdLineTest): 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"] @@ -660,6 +662,8 @@ 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"] |