Skip to content

Commit bd0ab3c

Browse files
authored
Reraise exception in skip_if_exception decorator
1 parent 154b985 commit bd0ab3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_black.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def skip_if_exception(e: str) -> Iterator[None]:
9999
if exc.__class__.__name__ == e:
100100
unittest.skip(f"Encountered expected exception {exc}, skipping")
101101
else:
102-
raise exc
102+
raise
103103

104104

105105
class BlackRunner(CliRunner):

0 commit comments

Comments
 (0)