summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2019-11-21 11:50:40 +0000
committerMark Dickinson <mdickinson@enthought.com>2019-11-21 11:50:40 +0000
commit64eb9ea670fd4d31e46e41ee397933fcad05886d (patch)
treedd4eb97d5cc2f64000b8983d45ee4cc25f21b075 /testing
parent7e10c8191d0a6b8e2a0047947ededc232d02cd06 (diff)
downloadpytest-64eb9ea670fd4d31e46e41ee397933fcad05886d.tar.gz
Modify test for new expected behaviour
Diffstat (limited to 'testing')
-rw-r--r--testing/test_runner.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/test_runner.py b/testing/test_runner.py
index 86e9bddff..301e11898 100644
--- a/testing/test_runner.py
+++ b/testing/test_runner.py
@@ -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):