From 3b53d3e393f30879420b4407583c42bb1f51563e Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 28 Jun 2016 19:26:08 -0700 Subject: [PATCH] fix mysterious tox issue --- mitmproxy/cmdline.py | 2 +- test/mitmproxy/test_proxy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mitmproxy/cmdline.py b/mitmproxy/cmdline.py index d46051a23..551fffa07 100644 --- a/mitmproxy/cmdline.py +++ b/mitmproxy/cmdline.py @@ -323,7 +323,7 @@ def basic_options(parser): def proxy_modes(parser): - group = parser.add_argument_group("Proxy Modes").add_mutually_exclusive_group() + group = parser.add_argument_group("Proxy Modes") group.add_argument( "-R", "--reverse", action="store", diff --git a/test/mitmproxy/test_proxy.py b/test/mitmproxy/test_proxy.py index 49c9c9093..cd24fc9fb 100644 --- a/test/mitmproxy/test_proxy.py +++ b/test/mitmproxy/test_proxy.py @@ -96,7 +96,7 @@ class TestProcessProxyOptions: self.assert_err("expected one argument", "--upstream-auth") self.assert_err("Invalid upstream auth specification", "--upstream-auth", "test") - self.assert_err("not allowed with", "-R", "http://localhost", "-T") + self.assert_err("mutually exclusive", "-R", "http://localhost", "-T") def test_socks_auth(self): self.assert_err("Proxy Authentication not supported in SOCKS mode.", "--socks", "--nonanonymous")