mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-93963: Remove ResourceReaderDefaultsTests (GH-96598)
Automerge-Triggered-By: GH:jaraco
This commit is contained in:
parent
80a9bd2e94
commit
52fe7e50c9
1 changed files with 0 additions and 28 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue