Skip to content

Commit

Permalink
Try explicit catcher.stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed Jan 14, 2025
1 parent f94b649 commit 5777f87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ def run_forced_fail_test(runner):
raise SystemExit(1)
except MutmutProgrammaticFailException:
pass
catcher.stop()
os.environ['MUTANT_UNDER_TEST'] = ''
print(' done')

Expand Down
1 change: 1 addition & 0 deletions tests/test_mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ def test_run_forced_fail_test_with_failing_test(capfd):

out, err = capfd.readouterr()
with capfd.disabled():
print()
print(f"out: {out}")
print(f"err: {err}")
assert 'Running forced fail test' in out
Expand Down

0 comments on commit 5777f87

Please sign in to comment.