From 7d9b5eed4674efcb01ed8e4467e4fa33cc0885c9 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 21 Oct 2017 12:38:07 -0400 Subject: Skip these new tests on Jython --- tests/test_cmdline.py | 4 ++++ 1 file changed, 4 insertions(+) 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"] -- cgit v1.2.1