Only run test_locale_workaround on Linux

Regressed in d56e01118c - needs to access
the qtwebengine_locales dir which is probably in another location on
non-Linux (especially macOS).
This commit is contained in:
Florian Bruhin 2021-03-17 18:43:28 +01:00
parent 07687ef24c
commit 3d06fca8a6
1 changed files with 2 additions and 3 deletions

View File

@ -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