From: Jason R. Coombs Date: Mon, 5 Sep 2022 19:37:51 +0000 (-0400) Subject: gh-93963: Remove ResourceReaderDefaultsTests (GH-96598) X-Git-Tag: v3.12.0a1~474 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52fe7e50c9945b7db60190b4b97e1213d05200b2;p=thirdparty%2FPython%2Fcpython.git gh-93963: Remove ResourceReaderDefaultsTests (GH-96598) Automerge-Triggered-By: GH:jaraco --- diff --git a/Lib/test/test_importlib/test_abc.py b/Lib/test/test_importlib/test_abc.py index 430dd77f8769..c214209350a0 100644 --- a/Lib/test/test_importlib/test_abc.py +++ b/Lib/test/test_importlib/test_abc.py @@ -320,34 +320,6 @@ class ResourceReader: return super().contents(*args, **kwargs) -class ResourceReaderDefaultsTests(ABCTestHarness): - - with warnings.catch_warnings(): - warnings.simplefilter('ignore', DeprecationWarning) - SPLIT = make_abc_subclasses(ResourceReader) - - def test_open_resource(self): - with self.assertRaises(FileNotFoundError): - self.ins.open_resource('dummy_file') - - def test_resource_path(self): - with self.assertRaises(FileNotFoundError): - self.ins.resource_path('dummy_file') - - def test_is_resource(self): - with self.assertRaises(FileNotFoundError): - self.ins.is_resource('dummy_file') - - def test_contents(self): - with self.assertRaises(FileNotFoundError): - self.ins.contents() - - -(Frozen_RRDefaultTests, - Source_RRDefaultsTests - ) = test_util.test_both(ResourceReaderDefaultsTests) - - ##### MetaPathFinder concrete methods ########################################## class MetaPathFinderFindModuleTests: