Skip to content

Commit 468532e

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent 9c1bec6 commit 468532e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

distutils/tests/test_dir_util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ def test_copy_tree_exception_in_listdir(self):
106106
"""
107107
An exception in listdir should raise a DistutilsFileError
108108
"""
109-
with mock.patch("os.listdir", side_effect=OSError()), pytest.raises(
110-
errors.DistutilsFileError
109+
with (
110+
mock.patch("os.listdir", side_effect=OSError()),
111+
pytest.raises(errors.DistutilsFileError),
111112
):
112113
src = self.tempdirs[-1]
113114
dir_util.copy_tree(src, None)

0 commit comments

Comments
 (0)