Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 23, 2024
1 parent d20000e commit 4ed8bff
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions importlib_resources/tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,23 @@ def test_contents(self):
set(c),
{'utf-8.file', 'utf-16.file', 'binary.file', 'subdirectory'},
)
with self.assertRaises(OSError), warnings_helper.check_warnings((
".*contents.*",
DeprecationWarning,
)):
with (
self.assertRaises(OSError),
warnings_helper.check_warnings((
".*contents.*",
DeprecationWarning,
)),
):
list(resources.contents(self.anchor01, 'utf-8.file'))

for path_parts in self._gen_resourcetxt_path_parts():
with self.assertRaises(OSError), warnings_helper.check_warnings((
".*contents.*",
DeprecationWarning,
)):
with (
self.assertRaises(OSError),
warnings_helper.check_warnings((
".*contents.*",
DeprecationWarning,
)),
):
list(resources.contents(self.anchor01, *path_parts))
with warnings_helper.check_warnings((".*contents.*", DeprecationWarning)):
c = resources.contents(self.anchor01, 'subdirectory')
Expand Down

0 comments on commit 4ed8bff

Please sign in to comment.