We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f24e2e5 commit d2d2fa0Copy full SHA for d2d2fa0
Lib/test/test_importlib/test_windows.py
@@ -5,6 +5,7 @@
5
import re
6
import sys
7
import unittest
8
+import warnings
9
from test import support
10
from test.support import import_helper
11
from contextlib import contextmanager
@@ -84,7 +85,9 @@ def test_find_spec_missing(self):
84
85
self.assertIs(spec, None)
86
87
def test_find_module_missing(self):
- loader = self.machinery.WindowsRegistryFinder.find_module('spam')
88
+ with warnings.catch_warnings():
89
+ warnings.simplefilter("ignore", DeprecationWarning)
90
+ loader = self.machinery.WindowsRegistryFinder.find_module('spam')
91
self.assertIs(loader, None)
92
93
def test_module_found(self):
0 commit comments