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.
This commit is contained in:
Jimmy 2018-06-05 20:36:07 +12:00
parent 2510fde80f
commit d31fa5229d

View File

@ -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