PyTest expected exceptions (no exception) output
def test_zero_division(): with pytest.raises(ValueError) as e: > divide(1, 0) E Failed: DID NOT RAISE <class 'ValueError'>
def test_zero_division(): with pytest.raises(ValueError) as e: > divide(1, 0) E Failed: DID NOT RAISE <class 'ValueError'>