Reraise exception in skip_if_exception decorator

This commit is contained in:
Zsolt Dollenstein 2019-08-05 10:07:43 +01:00 committed by GitHub
parent 154b98579d
commit bd0ab3cba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ def skip_if_exception(e: str) -> Iterator[None]:
if exc.__class__.__name__ == e:
unittest.skip(f"Encountered expected exception {exc}, skipping")
else:
raise exc
raise
class BlackRunner(CliRunner):