Skip to content

Commit ea917ed

Browse files
committed
Unify behavior in ResourceReaderDefaultsTests and align with the behavior found in importlib_resources.
1 parent 6486797 commit ea917ed

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_importlib/test_abc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ def test_is_resource(self):
338338
self.ins.is_resource('dummy_file')
339339

340340
def test_contents(self):
341-
self.assertEqual([], list(self.ins.contents()))
341+
with self.assertRaises(FileNotFoundError):
342+
self.ins.contents()
343+
342344

343345
(Frozen_RRDefaultTests,
344346
Source_RRDefaultsTests

0 commit comments

Comments
 (0)