Skip to content

Commit 4ed8bff

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent d20000e commit 4ed8bff

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

‎importlib_resources/tests/test_functional.py

+14-8
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,23 @@ def test_contents(self):
182182
set(c),
183183
{'utf-8.file', 'utf-16.file', 'binary.file', 'subdirectory'},
184184
)
185-
with self.assertRaises(OSError), warnings_helper.check_warnings((
186-
".*contents.*",
187-
DeprecationWarning,
188-
)):
185+
with (
186+
self.assertRaises(OSError),
187+
warnings_helper.check_warnings((
188+
".*contents.*",
189+
DeprecationWarning,
190+
)),
191+
):
189192
list(resources.contents(self.anchor01, 'utf-8.file'))
190193

191194
for path_parts in self._gen_resourcetxt_path_parts():
192-
with self.assertRaises(OSError), warnings_helper.check_warnings((
193-
".*contents.*",
194-
DeprecationWarning,
195-
)):
195+
with (
196+
self.assertRaises(OSError),
197+
warnings_helper.check_warnings((
198+
".*contents.*",
199+
DeprecationWarning,
200+
)),
201+
):
196202
list(resources.contents(self.anchor01, *path_parts))
197203
with warnings_helper.check_warnings((".*contents.*", DeprecationWarning)):
198204
c = resources.contents(self.anchor01, 'subdirectory')

0 commit comments

Comments
 (0)