summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-11-24 21:44:28 +0100
committerFlorian Bruhin <me@the-compiler.org>2019-11-24 21:45:42 +0100
commit4c5cc238245649409fa71a9817e0063e9e5c616a (patch)
tree31306a11d79c0ee99fe68fc241e29b977f94ba3f /tests/conftest.py
parenta93fa5a9a80d3aee952cde1201e70212f6e19343 (diff)
downloadqutebrowser-4c5cc238245649409fa71a9817e0063e9e5c616a.tar.gz
qutebrowser-4c5cc238245649409fa71a9817e0063e9e5c616a.zip
Enable new PyQt exit scheme in tests
See #5017
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 033204d0e..0fc70d626 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -39,7 +39,7 @@ from helpers.logfail import fail_on_logging
from helpers.messagemock import message_mock, message_bridge
from helpers.fixtures import * # noqa: F403
from qutebrowser.utils import qtutils, standarddir, usertypes, utils, version
-from qutebrowser.misc import objects
+from qutebrowser.misc import objects, earlyinit
from qutebrowser.qt import sip
import qutebrowser.app # To register commands
@@ -240,12 +240,7 @@ def pytest_configure(config):
# Fail early if QtWebEngine is not available
if config.webengine:
import PyQt5.QtWebEngineWidgets
-
- try:
- # Added in sip 4.19.4
- sip.enableoverflowchecking(True) # type: ignore
- except AttributeError:
- pass
+ earlyinit.configure_pyqt()
@pytest.fixture(scope='session', autouse=True)