I never used pytest.raises, another way to do what you want is something like this: try: clients(5) except: pytest.fail("My test failed \n", ...
確定! 回上一頁