diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-12-03 17:33:44 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-12-03 17:33:44 +0100 |
commit | 1864993ec1d2854f4433867f800d42da309c6eb9 (patch) | |
tree | b50c4dacf35851c3b18f5df21930bd7157472b0a | |
parent | 9d32fab658b77b58aa72ff6f8db975082f69f865 (diff) | |
download | qutebrowser-1864993ec1d2854f4433867f800d42da309c6eb9.tar.gz qutebrowser-1864993ec1d2854f4433867f800d42da309c6eb9.zip |
Fix path handling for Python 3.5
-rw-r--r-- | tests/unit/browser/test_pdfjs.py | 2 |
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 |