diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-04-28 21:36:02 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-04-28 21:36:02 +0200 |
commit | bffdea671998f66ec0add9a6c88adc2ba3c152a9 (patch) | |
tree | 9e063da16f0c14da5db6951cb3ae36be1825660b /tests/end2end/conftest.py | |
parent | 8101fe99a8c483af4d868972c354d3cee63bd1a2 (diff) | |
download | qutebrowser-bffdea671998f66ec0add9a6c88adc2ba3c152a9.tar.gz qutebrowser-bffdea671998f66ec0add9a6c88adc2ba3c152a9.zip |
Read qWebKitVersion in qtutils.is_webkit_ng.
This means we need to try and import qWebKitVersion in qtutils, but better there
than at every place which calls it.
Diffstat (limited to 'tests/end2end/conftest.py')
-rw-r--r-- | tests/end2end/conftest.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/end2end/conftest.py b/tests/end2end/conftest.py index 7d1c0e90d..b374f53dd 100644 --- a/tests/end2end/conftest.py +++ b/tests/end2end/conftest.py @@ -136,16 +136,6 @@ if not getattr(sys, 'frozen', False): def pytest_collection_modifyitems(config, items): """Apply @qtwebengine_* markers; skip unittests with QUTE_BDD_WEBENGINE.""" - if config.webengine: - qtwebkit_ng_used = False - else: - try: - from PyQt5.QtWebKit import qWebKitVersion - except ImportError: - qtwebkit_ng_used = False - else: - qtwebkit_ng_used = qtutils.is_qtwebkit_ng(qWebKitVersion()) - markers = [ ('qtwebengine_todo', 'QtWebEngine TODO', pytest.mark.xfail, config.webengine), @@ -154,9 +144,9 @@ def pytest_collection_modifyitems(config, items): ('qtwebkit_skip', 'Skipped with QtWebKit', pytest.mark.skipif, not config.webengine), ('qtwebkit_ng_xfail', 'Failing with QtWebKit-NG', pytest.mark.xfail, - qtwebkit_ng_used), + not config.webengine and qtutils.is_qtwebkit_ng()), ('qtwebkit_ng_skip', 'Skipped with QtWebKit-NG', pytest.mark.skipif, - qtwebkit_ng_used), + not config.webengine and qtutils.is_qtwebkit_ng()), ('qtwebengine_flaky', 'Flaky with QtWebEngine', pytest.mark.skipif, config.webengine), ('qtwebengine_osx_xfail', 'Fails on OS X with QtWebEngine', |