From 0abd16f6e52e15373df1f861455892a9364ae7d6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 5 Apr 2016 14:09:25 +0200 Subject: [PATCH] tests: Use repr to wait for download question The tests failed on Windows because a double-slash was printed in the logs, but the tests expected a single one. --- tests/integration/features/test_downloads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/features/test_downloads.py b/tests/integration/features/test_downloads.py index 4c2459420..90000e3c3 100644 --- a/tests/integration/features/test_downloads.py +++ b/tests/integration/features/test_downloads.py @@ -58,7 +58,7 @@ def download_should_exist(filename, tmpdir): def download_prompt(tmpdir, quteproc, path): full_path = path.replace('{downloaddir}', str(tmpdir)).replace('/', os.sep) msg = ("Asking question " + "default='{full_path!r}' mode= " "text='Save file to:'>, *".format(full_path=full_path)) quteproc.wait_for(message=msg) quteproc.send_cmd(':leave-mode')