From bd0ab3cba2fb2be65985741f0a4c382b675c2876 Mon Sep 17 00:00:00 2001 From: Zsolt Dollenstein Date: Mon, 5 Aug 2019 10:07:43 +0100 Subject: [PATCH 1/1] Reraise exception in `skip_if_exception` decorator --- tests/test_black.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.5