Modify test for new expected behaviour

This commit is contained in:
Mark Dickinson 2019-11-21 11:50:40 +00:00
parent 7e10c8191d
commit 64eb9ea670
1 changed files with 3 additions and 3 deletions

View File

@ -900,9 +900,9 @@ def test_store_except_info_on_error():
# The next run should clear the exception info stored by the previous run
ItemMightRaise.raise_error = False
runner.pytest_runtest_call(ItemMightRaise())
assert sys.last_type is None
assert sys.last_value is None
assert sys.last_traceback is None
assert not hasattr(sys, "last_type")
assert not hasattr(sys, "last_value")
assert not hasattr(sys, "last_traceback")
def test_current_test_env_var(testdir, monkeypatch):