On 1/10/2016 2:38 PM, Robert wrote:
Hi,
Below is a code snippet from pytest package. It passes pytest, i.e. there is
no failure report.
# content of test_sysexit.py
import pytest
def f():
raise SystemExit(1)
def test_mytest():
with pytest.raises(SystemExit):
f()
I se
Hi,
Below is a code snippet from pytest package. It passes pytest, i.e. there is
no failure report.
# content of test_sysexit.py
import pytest
def f():
raise SystemExit(1)
def test_mytest():
with pytest.raises(SystemExit):
f()
I see that f() will generate 'SystemExit(1)'.