diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-08-18 10:27:31 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-08-18 10:27:31 +1200 |
| commit | a66d018363e6d0c597577ed459308d4c80cbc2cc (patch) | |
| tree | 7cf1fb81c72cf836764b9bffa0f5e32b94728621 | |
| parent | d88d72e50b03a6b7ebafb43cc7370e530f363d4f (diff) | |
| download | mitmproxy-a66d018363e6d0c597577ed459308d4c80cbc2cc.tar.gz mitmproxy-a66d018363e6d0c597577ed459308d4c80cbc2cc.tar.bz2 mitmproxy-a66d018363e6d0c597577ed459308d4c80cbc2cc.zip | |
Fix unit tests after argparse conversion.
| -rw-r--r-- | test/test_cmdline.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index cc1abfa2..06b3abc9 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -1,4 +1,4 @@ -import optparse +import argparse from libmproxy import cmdline import tutils @@ -35,9 +35,9 @@ def test_parse_replace_hook(): ) def test_common(): - parser = optparse.OptionParser() + parser = argparse.ArgumentParser() cmdline.common_options(parser) - opts, args = parser.parse_args(args=[]) + opts = parser.parse_args(args=[]) assert cmdline.get_common_options(opts) |
