From: Zsolt Dollenstein Date: Mon, 5 Aug 2019 09:07:43 +0000 (+0100) Subject: Reraise exception in `skip_if_exception` decorator X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/bd0ab3cba2fb2be65985741f0a4c382b675c2876?ds=inline Reraise exception in `skip_if_exception` decorator --- diff --git a/tests/test_black.py b/tests/test_black.py index a465d54..ce84037 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -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):