diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-17 18:43:28 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-17 18:45:24 +0100 |
commit | 3d06fca8a61a66326cd00171241c08ad3a82c383 (patch) | |
tree | 1d8e68c4391a65200c88f6807f2eeab81b0d4493 | |
parent | 07687ef24c8b74da7a86049927e5fa5f89d37314 (diff) | |
download | qutebrowser-3d06fca8a61a66326cd00171241c08ad3a82c383.tar.gz qutebrowser-3d06fca8a61a66326cd00171241c08ad3a82c383.zip |
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).
-rw-r--r-- | tests/unit/config/test_qtargs.py | 5 |
1 files 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 |