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:
parent
07687ef24c
commit
3d06fca8a6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue