Commit 2485abfa authored by Eric Snow's avatar Eric Snow

Issue #19758: silence PendingDeprecationWarnings in test_importlib.

parent 1cc849c9
......@@ -10,6 +10,7 @@ import os.path
from test.support import CleanImport
import unittest
import sys
import warnings
......@@ -55,6 +56,9 @@ class LegacyLoader(TestLoader):
HAM = -1
with warnings.catch_warnings():
warnings.simplefilter("ignore", PendingDeprecationWarning)
@frozen_util.module_for_loader
def load_module(self, module):
module.ham = self.HAM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment