aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test_cmdline.py6
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)