Skip to content

Commit

Permalink
Fix sonarcloud.io found issue in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed May 16, 2024
1 parent 2c77313 commit e3b623c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def run_main(*args, code=None):

with raises(SystemExit) as e:
run_module("retasc")
assert e.code == code

assert e.value.code == code


@mark.parametrize("arg", ("--help", "-h"))
Expand Down

0 comments on commit e3b623c

Please sign in to comment.