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)'. Then what does function test_mytest()? Is it missing some assert line? The above code is from page 5 (9 of 93) of 'pytest Documentation' Release 2.8.2 Thanks, -- https://mail.python.org/mailman/listinfo/python-list