mirror of
https://github.com/python/cpython.git
synced 2024-12-18 14:24:33 +08:00
gh-96280: suppress deprecation warning in test_importlib (GH-96281)
This commit is contained in:
parent
b462f143ff
commit
ccf94a6289
@ -322,7 +322,9 @@ class ResourceReader:
|
||||
|
||||
class ResourceReaderDefaultsTests(ABCTestHarness):
|
||||
|
||||
SPLIT = make_abc_subclasses(ResourceReader)
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter('ignore', DeprecationWarning)
|
||||
SPLIT = make_abc_subclasses(ResourceReader)
|
||||
|
||||
def test_open_resource(self):
|
||||
with self.assertRaises(FileNotFoundError):
|
||||
|
Loading…
Reference in New Issue
Block a user