Skip to content

Commit

Permalink
fix chaining exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
anvacaru committed Jan 16, 2025
1 parent 6f55d13 commit 5ede413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kevm-pyk/src/tests/integration/test_conformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def _test(gst_file: Path, schedule: str, mode: str, usegas: bool, save_failing:

try:
_assert_exit_code_zero(res)
except AssertionError:
failing_tests.append(test_name)
except AssertionError as _exception:
if not save_failing:
raise AssertionError
raise _exception
failing_tests.append(test_name)

if failing_tests:
if save_failing:
Expand Down

0 comments on commit 5ede413

Please sign in to comment.