diff options
Diffstat (limited to 'test/mitmproxy/test_types.py')
-rw-r--r-- | test/mitmproxy/test_types.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/mitmproxy/test_types.py b/test/mitmproxy/test_types.py index c8f7afde..2cd17d87 100644 --- a/test/mitmproxy/test_types.py +++ b/test/mitmproxy/test_types.py @@ -128,8 +128,7 @@ def test_arg(): with taddons.context() as tctx: b = mitmproxy.types._ArgType() assert b.completion(tctx.master.commands, mitmproxy.types.CmdArgs, "") == [] - with pytest.raises(mitmproxy.exceptions.TypeError): - b.parse(tctx.master.commands, mitmproxy.types.CmdArgs, "foo") + assert b.parse(tctx.master.commands, mitmproxy.types.CmdArgs, "foo") == "foo" assert b.is_valid(tctx.master.commands, mitmproxy.types.CmdArgs, 1) is False |