mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-42129: Add support for resources in namespaces (GH-24670)
* Unify behavior in ResourceReaderDefaultsTests and align with the behavior found in importlib_resources. * Equip NamespaceLoader with a NamespaceReader. * Apply changes from importlib_resources 5.0.4
This commit is contained in:
parent
fbf75b9997
commit
6714825414
21 changed files with 1315 additions and 916 deletions
|
@ -338,7 +338,9 @@ class ResourceReaderDefaultsTests(ABCTestHarness):
|
|||
self.ins.is_resource('dummy_file')
|
||||
|
||||
def test_contents(self):
|
||||
self.assertEqual([], list(self.ins.contents()))
|
||||
with self.assertRaises(FileNotFoundError):
|
||||
self.ins.contents()
|
||||
|
||||
|
||||
(Frozen_RRDefaultTests,
|
||||
Source_RRDefaultsTests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue