summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-04-15 09:51:45 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2020-04-15 09:51:45 +0200
commita6799b242c0abd6a9dfbf1e98742b2b922205ebf (patch)
tree89d3c5330ec4cae28f39c64c6a343caa5b6a868b /tests/conftest.py
parent9cdbc56fbac4db2de78dc080934b8f0a7efc892a (diff)
downloadpygobject-a6799b242c0abd6a9dfbf1e98742b2b922205ebf.tar.gz
Remove all Python 2 Python code
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py9
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)