tests: Adjust error message comparison for Windows.

This commit is contained in:
Florian Bruhin 2015-12-21 09:51:25 +01:00
parent 95e67bba7b
commit 9101046fe5

View File

@ -220,9 +220,8 @@ def test_temporary_files_failed_cleanup(caplog, qtbot, tmpdir, py_proc,
runner.run(cmd, *args, env={'QUTE_HTML': str(test_file)})
assert len(caplog.records) == 1
expected = ("Failed to delete tempfile {file} ([Errno 2] No such file or "
"directory: '{file}')!".format(file=test_file))
assert caplog.records[0].message == expected
expected = "Failed to delete tempfile {} (".format(test_file)
assert caplog.records[0].message.startswith(expected)
def test_dummy_runner(qtbot):