📅  最后修改于: 2022-03-11 14:46:54.981000             🧑  作者: Mango
# Check that my_statement(myarg) raises ValueError
import pytest
def test_testname():
with pytest.raises(ValueError):
my_statement(myarg)