From 3e5f13f56161caf89207c403c4683782023644a0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 10 Mar 2021 22:26:40 +0100 Subject: Fix locale test on Windows --- tests/unit/config/test_qtargs_locale_workaround.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/config/test_qtargs_locale_workaround.py b/tests/unit/config/test_qtargs_locale_workaround.py index 073e08c03..7c0be65f1 100644 --- a/tests/unit/config/test_qtargs_locale_workaround.py +++ b/tests/unit/config/test_qtargs_locale_workaround.py @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . +import os import pathlib import pytest @@ -452,4 +453,5 @@ def test_no_locales_available(qtwe_version, monkeypatch, caplog): monkeypatch.setattr(qtargs.QLibraryInfo, 'location', lambda _path: '/doesnotexist') assert qtargs._get_lang_override(qtwe_version, "de-CH") is None assert caplog.messages == [ - "/doesnotexist/qtwebengine_locales not found, skipping workaround!"] + f"{os.sep}doesnotexist{os.sep}qtwebengine_locales not found, skipping " + "workaround!"] -- cgit v1.2.3-54-g00ecf