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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_argparse.py b/test/test_argparse.py
index ad2be1a..6939380 100644
--- a/test/test_argparse.py
+++ b/test/test_argparse.py
@@ -44,6 +44,14 @@ except NameError:
result.reverse()
return result
+# silence Python 2.6 buggy warnings about Exception.message
+if sys.version_info[:2] == (2, 6):
+ import warnings
+ warnings.filterwarnings(
+ action='ignore',
+ message='BaseException.message has been deprecated as of Python 2.6',
+ category=DeprecationWarning)
+
class TestCase(unittest.TestCase):