diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-07-03 13:41:38 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-07-03 18:55:46 +0200 |
commit | d9e3a2ba1723e391e6486b77c370cef2222f2273 (patch) | |
tree | 0b583fcae031972747a196dea429483e6180f3d2 | |
parent | f861336496eb09f941a710c8f4cfb445fd56ccae (diff) | |
download | qutebrowser-d9e3a2ba1723e391e6486b77c370cef2222f2273.tar.gz qutebrowser-d9e3a2ba1723e391e6486b77c370cef2222f2273.zip |
tests: Fix test_invocations.test_version on Qt 5.7
-rw-r--r-- | tests/end2end/test_invocations.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py index 92dec6311..cd9aefe16 100644 --- a/tests/end2end/test_invocations.py +++ b/tests/end2end/test_invocations.py @@ -29,6 +29,7 @@ import pytest from PyQt5.QtCore import QProcess from helpers import utils +from qutebrowser.utils import qtutils ascii_locale = pytest.mark.skipif(sys.hexversion >= 0x03070000, @@ -251,7 +252,10 @@ def test_version(request): print(stderr) assert ok - assert proc.exitStatus() == QProcess.NormalExit + + if qtutils.version_check('5.9'): + # Segfaults on exit with Qt 5.7 + assert proc.exitStatus() == QProcess.NormalExit match = re.search(r'^qutebrowser\s+v\d+(\.\d+)', stdout, re.MULTILINE) assert match is not None |