From 40b1be69255be9107775028e998b75814d636d58 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 9 Jun 2018 19:59:11 +0200 Subject: [PATCH] Fix test_disable_gpu with QtWebKit --- tests/unit/config/test_configinit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/config/test_configinit.py b/tests/unit/config/test_configinit.py index 2bda41182..07ba36636 100644 --- a/tests/unit/config/test_configinit.py +++ b/tests/unit/config/test_configinit.py @@ -400,9 +400,9 @@ class TestQtArgs: assert configinit.qt_args(parsed) == expected def test_disable_gpu(self, config_stub, monkeypatch, parser): - config_stub.val.qt.force_software_rendering = 'chromium' monkeypatch.setattr(configinit.objects, 'backend', usertypes.Backend.QtWebEngine) + config_stub.val.qt.force_software_rendering = 'chromium' parsed = parser.parse_args([]) expected = [sys.argv[0], '--disable-gpu'] assert configinit.qt_args(parsed) == expected