diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test___all__.py | 3 | ||||
-rw-r--r-- | Lib/test/test_json.py | 1 | ||||
-rw-r--r-- | Lib/test/test_support.py | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index f6da4fe2ba..dbc55cdf3f 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -9,7 +9,8 @@ class AllTest(unittest.TestCase): def check_all(self, modname): names = {} with catch_warning(): - warnings.filterwarnings("ignore", ".* module", DeprecationWarning) + warnings.filterwarnings("ignore", ".* (module|package)", + DeprecationWarning) try: exec("import %s" % modname, names) except ImportError: diff --git a/Lib/test/test_json.py b/Lib/test/test_json.py index 7b8f3de8a9..17ccdeecc4 100644 --- a/Lib/test/test_json.py +++ b/Lib/test/test_json.py @@ -11,6 +11,7 @@ import test.test_support def test_main(): test.test_support.run_unittest(json.tests.test_suite()) + test.test_support.run_doctest(json) if __name__ == "__main__": diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 62d327eece..27a01ea471 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -42,7 +42,8 @@ def import_module(name, deprecated=False): available.""" with catch_warning(record=False): if deprecated: - warnings.filterwarnings("ignore", ".+ module", DeprecationWarning) + warnings.filterwarnings("ignore", ".+ (module|package)", + DeprecationWarning) try: module = __import__(name, level=0) except ImportError: |