summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-12-03 17:33:44 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-12-03 17:33:44 +0100
commit1864993ec1d2854f4433867f800d42da309c6eb9 (patch)
treeb50c4dacf35851c3b18f5df21930bd7157472b0a
parent9d32fab658b77b58aa72ff6f8db975082f69f865 (diff)
downloadqutebrowser-1864993ec1d2854f4433867f800d42da309c6eb9.tar.gz
qutebrowser-1864993ec1d2854f4433867f800d42da309c6eb9.zip
Fix path handling for Python 3.5
-rw-r--r--tests/unit/browser/test_pdfjs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/browser/test_pdfjs.py b/tests/unit/browser/test_pdfjs.py
index 811493e21..2aaaf2851 100644
--- a/tests/unit/browser/test_pdfjs.py
+++ b/tests/unit/browser/test_pdfjs.py
@@ -162,7 +162,7 @@ class TestResources:
"""Make sure we don't crash with a broken local installation."""
monkeypatch.setattr(pdfjs, '_SYSTEM_PATHS', [])
monkeypatch.setattr(pdfjs.os.path, 'expanduser',
- lambda _in: tmpdir / 'fallback')
+ lambda _in: str(tmpdir / 'fallback'))
read_file_mock.side_effect = FileNotFoundError
(data_tmpdir / 'pdfjs' / 'pdf.js').ensure() # But no viewer.html