summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2015-12-21 09:51:25 +0100
committerFlorian Bruhin <git@the-compiler.org>2015-12-21 09:51:25 +0100
commit9101046fe5c7c6dda3a6a72a9b9b5f238e454beb (patch)
treeed831ef2829f5e2fab9164e984c0cbff4b6eeb80
parent95e67bba7bcd6588d7acfc4420237ce12d9dcfad (diff)
downloadqutebrowser-9101046fe5c7c6dda3a6a72a9b9b5f238e454beb.tar.gz
qutebrowser-9101046fe5c7c6dda3a6a72a9b9b5f238e454beb.zip
tests: Adjust error message comparison for Windows.
-rw-r--r--tests/unit/commands/test_userscripts.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/commands/test_userscripts.py b/tests/unit/commands/test_userscripts.py
index 9848e5276..fdda6992b 100644
--- a/tests/unit/commands/test_userscripts.py
+++ b/tests/unit/commands/test_userscripts.py
@@ -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):