From d31fa5229dd995041c4369cecf978eab3b0bc1b4 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Tue, 5 Jun 2018 20:36:07 +1200 Subject: [PATCH] Stringify py.path object for py3.5 https://www.python.org/dev/peps/pep-0519/ Huh, I didn't realise cpython and the stdlib look up "special" methods on the class only. --- tests/unit/browser/webkit/test_downloads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/browser/webkit/test_downloads.py b/tests/unit/browser/webkit/test_downloads.py index f14c417f9..68573002c 100644 --- a/tests/unit/browser/webkit/test_downloads.py +++ b/tests/unit/browser/webkit/test_downloads.py @@ -104,7 +104,7 @@ class TestDownloadTarget: ]) def test_sanitized_filenames(raw, expected, config_stub, download_tmpdir): manager = downloads.AbstractDownloadManager() - target = downloads.FileDownloadTarget(download_tmpdir) + target = downloads.FileDownloadTarget(str(download_tmpdir)) item = downloads.AbstractDownloadItem() # Don't try to start a timer outside of a QThread