diff options
Diffstat (limited to 'Lib/test/test_json.py')
-rw-r--r-- | Lib/test/test_json.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_json.py b/Lib/test/test_json.py index 7b8f3de..bb99dab 100644 --- a/Lib/test/test_json.py +++ b/Lib/test/test_json.py @@ -7,10 +7,15 @@ be run. import json.tests import test.test_support +import warnings def test_main(): - test.test_support.run_unittest(json.tests.test_suite()) + with warnings.catch_warnings(): + # Silence Py3k warning + warnings.filterwarnings("ignore", "comparing unequal types " + "not supported", DeprecationWarning) + test.test_support.run_unittest(json.tests.test_suite()) if __name__ == "__main__": |