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 | 7d9b5eed4674efcb01ed8e4467e4fa33cc0885c9 (patch) | |
tree | fec158f41f3b12f3a73535047b18227190e0c396 /tests/test_cmdline.py | |
parent | 62617a3a8ac8908d772695512cb3cf05945efcb8 (diff) | |
download | python-coveragepy-git-7d9b5eed4674efcb01ed8e4467e4fa33cc0885c9.tar.gz |
Skip these new tests on Jython
Diffstat (limited to 'tests/test_cmdline.py')
-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 7ef474e0..9d64d864 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"] |