diff options
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 820210ce..254a7217 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,13 +1,7 @@ -# -*- coding: utf-8 -*- - -from __future__ import absolute_import - import sys import pytest -from gi._compat import reraise - @pytest.hookimpl(hookwrapper=True, tryfirst=True) def pytest_runtest_call(item): @@ -28,4 +22,5 @@ def pytest_runtest_call(item): finally: sys.excepthook = orig_excepthook if exceptions: - reraise(*exceptions[0]) + tp, value, tb = exceptions[0] + raise tp(value).with_traceback(tb) |