From ccf94a6289c722f56000ffed5dd416371127c759 Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Fri, 26 Aug 2022 22:44:33 +0100 Subject: gh-96280: suppress deprecation warning in test_importlib (GH-96281) --- Lib/test/test_importlib/test_abc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_importlib/test_abc.py b/Lib/test/test_importlib/test_abc.py index 88bf100..430dd77 100644 --- a/Lib/test/test_importlib/test_abc.py +++ b/Lib/test/test_importlib/test_abc.py @@ -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): -- cgit v0.12