summaryrefslogtreecommitdiff
path: root/test/test_argparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_argparse.py')
-rw-r--r--test/test_argparse.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_argparse.py b/test/test_argparse.py
index f9e0f24..290b5e9 100644
--- a/test/test_argparse.py
+++ b/test/test_argparse.py
@@ -52,6 +52,21 @@ if sys.version_info[:2] == (2, 6):
message='BaseException.message has been deprecated as of Python 2.6',
category=DeprecationWarning)
+# silence warnings about version argument - these are expected
+import warnings
+warnings.filterwarnings(
+ action='ignore',
+ message='The "version" argument to ArgumentParser is deprecated.',
+ category=DeprecationWarning)
+warnings.filterwarnings(
+ action='ignore',
+ message='The format_version method is deprecated',
+ category=DeprecationWarning)
+warnings.filterwarnings(
+ action='ignore',
+ message='The print_version method is deprecated',
+ category=DeprecationWarning)
+
class TestCase(unittest.TestCase):