mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-96280: suppress deprecation warning in test_importlib (GH-96281)
This commit is contained in:
parent
b462f143ff
commit
ccf94a6289
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue