From 1864993ec1d2854f4433867f800d42da309c6eb9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 3 Dec 2020 17:33:44 +0100 Subject: Fix path handling for Python 3.5 --- tests/unit/browser/test_pdfjs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf