Skip to content

Commit

Permalink
Remove the check of the exit code
Browse files Browse the repository at this point in the history
This gives coverage 100% coverage.  Why this happens I don't know.
  • Loading branch information
kpinc committed Aug 30, 2024
1 parent dc33125 commit bd9dcd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_scripts/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def reporter(text):
reporter_called = True

reporter_called = False
with pytest.raises(SystemExit) as execinfo:
get_config_loader('invalidscheme:/foo', reporter)

assert execinfo.code == 1
with pytest.raises(SystemExit):
pyramid.scripts.common.get_config_loader(
'invalidscheme:/foo', reporter
)

assert reporter_called is True

0 comments on commit bd9dcd4

Please sign in to comment.