From 3d06fca8a61a66326cd00171241c08ad3a82c383 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 17 Mar 2021 18:43:28 +0100 Subject: Only run test_locale_workaround on Linux Regressed in d56e01118c9272e1bd2557a88858dc5eae05d01c - needs to access the qtwebengine_locales dir which is probably in another location on non-Linux (especially macOS). --- tests/unit/config/test_qtargs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unit/config/test_qtargs.py b/tests/unit/config/test_qtargs.py index 9d24b97a5..286caa369 100644 --- a/tests/unit/config/test_qtargs.py +++ b/tests/unit/config/test_qtargs.py @@ -508,15 +508,14 @@ class TestWebEngineArgs: for arg in expected: assert arg in args - def test_locale_workaround(self, config_stub, monkeypatch, version_patcher, - parser): + @pytest.mark.linux + def test_locale_workaround(self, config_stub, monkeypatch, version_patcher, parser): class FakeLocale: def bcp47Name(self): return 'de-CH' monkeypatch.setattr(qtargs, 'QLocale', FakeLocale) - monkeypatch.setattr(qtargs.utils, 'is_linux', True) version_patcher('5.15.3') config_stub.val.qt.workarounds.locale = True -- cgit v1.2.3-54-g00ecf