diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2020-04-15 09:51:45 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2020-04-15 09:51:45 +0200 |
commit | a6799b242c0abd6a9dfbf1e98742b2b922205ebf (patch) | |
tree | 89d3c5330ec4cae28f39c64c6a343caa5b6a868b /tests/conftest.py | |
parent | 9cdbc56fbac4db2de78dc080934b8f0a7efc892a (diff) | |
download | pygobject-a6799b242c0abd6a9dfbf1e98742b2b922205ebf.tar.gz |
Remove all Python 2 Python code
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) |