gh-93963: Remove ResourceReaderDefaultsTests (GH-96598)

Automerge-Triggered-By: GH:jaraco
This commit is contained in:
Jason R. Coombs 2022-09-05 15:37:51 -04:00 committed by GitHub
parent 80a9bd2e94
commit 52fe7e50c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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: