Skip tests using fake_web_tab on PyQt < 5.6
For some weird reason they cause a segfault in QObject::disconnect since fake_web_tab was converted to a fixture... See #1638
This commit is contained in:
parent
01b7b27bda
commit
86f381a3b7
@ -40,7 +40,7 @@ from qutebrowser.browser.webkit import cookies
|
||||
from qutebrowser.misc import savemanager
|
||||
from qutebrowser.keyinput import modeman
|
||||
|
||||
from PyQt5.QtCore import QEvent, QSize, Qt
|
||||
from PyQt5.QtCore import PYQT_VERSION, QEvent, QSize, Qt
|
||||
from PyQt5.QtGui import QKeyEvent
|
||||
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QVBoxLayout
|
||||
from PyQt5.QtNetwork import QNetworkCookieJar
|
||||
@ -127,6 +127,8 @@ def tab_registry(win_registry):
|
||||
@pytest.fixture
|
||||
def fake_web_tab(stubs, tab_registry, qapp):
|
||||
"""Fixture providing the FakeWebTab *class*."""
|
||||
if PYQT_VERSION < 0x050600:
|
||||
pytest.skip('Causes segfaults, see #1638')
|
||||
return stubs.FakeWebTab
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user