Skip to content

Commit

Permalink
Update test_sample.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jcalvarezjr authored Nov 26, 2023
1 parent 7fd4594 commit 1d2e26a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ def inc(x):

def test_answer():
assert inc(3) == 5

def f():
raise SystemExit(1)


def test_mytest():
with pytest.raises(SystemExit):
f()

0 comments on commit 1d2e26a

Please sign in to comment.