10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e9f093 commit 22556d8Copy full SHA for 22556d8
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