Skip to content

Commit

Permalink
gh-96280: suppress deprecation warning in test_importlib (GH-96281)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Aug 26, 2022
1 parent b462f14 commit ccf94a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/test/test_importlib/test_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ def contents(self, *args, **kwargs):

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):
Expand Down

0 comments on commit ccf94a6

Please sign in to comment.