📅  最后修改于: 2022-03-11 14:47:24.735000             🧑  作者: Mango
# content of test_sysexit.py
import pytest
def f():
raise SystemExit(1)
def test_mytest():
with pytest.raises(SystemExit):
f()