gh-96280: suppress deprecation warning in test_importlib (GH-96281)

This commit is contained in:
Irit Katriel 2022-08-26 22:44:33 +01:00 committed by GitHub
parent b462f143ff
commit ccf94a6289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):