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.
This commit is contained in:
Florian Bruhin 2016-04-05 14:09:25 +02:00
parent fb741582ef
commit 0abd16f6e5

View File

@ -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 <qutebrowser.utils.usertypes.Question "
"default='{full_path}' mode=<PromptMode.text: 2> "
"default='{full_path!r}' mode=<PromptMode.text: 2> "
"text='Save file to:'>, *".format(full_path=full_path))
quteproc.wait_for(message=msg)
quteproc.send_cmd(':leave-mode')