diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-10 22:26:40 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-10 22:26:40 +0100 |
commit | 3e5f13f56161caf89207c403c4683782023644a0 (patch) | |
tree | 3066c3e4345ecc35ba72396eb244bfea7a80eb4e | |
parent | 27fcfcdbd25ed7136773f6bd99cd317c89af93d6 (diff) | |
download | qutebrowser-3e5f13f56161caf89207c403c4683782023644a0.tar.gz qutebrowser-3e5f13f56161caf89207c403c4683782023644a0.zip |
Fix locale test on Windows
-rw-r--r-- | tests/unit/config/test_qtargs_locale_workaround.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>. +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!"] |