From a66d018363e6d0c597577ed459308d4c80cbc2cc Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 18 Aug 2012 10:27:31 +1200 Subject: [PATCH] Fix unit tests after argparse conversion. --- test/test_cmdline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_cmdline.py b/test/test_cmdline.py index cc1abfa2f..06b3abc9c 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)