]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93963: Remove ResourceReaderDefaultsTests (GH-96598)
authorJason R. Coombs <jaraco@jaraco.com>
Mon, 5 Sep 2022 19:37:51 +0000 (15:37 -0400)
committerGitHub <noreply@github.com>
Mon, 5 Sep 2022 19:37:51 +0000 (12:37 -0700)
Automerge-Triggered-By: GH:jaraco
Lib/test/test_importlib/test_abc.py

index 430dd77f8769090b433b9d88600e8cca660f94d9..c214209350a0c85db36123e1de6685a504e240b1 100644 (file)
@@ -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: