Fix adblock UTF-8 test on Windows
This commit is contained in:
parent
7d9686f917
commit
ecec836111
@ -342,8 +342,8 @@ def test_invalid_utf8(config_stub, download_stub, tmpdir, caplog, location):
|
|||||||
with caplog.at_level(logging.ERROR):
|
with caplog.at_level(logging.ERROR):
|
||||||
finished_signal.emit()
|
finished_signal.emit()
|
||||||
expected = (r"Failed to decode: "
|
expected = (r"Failed to decode: "
|
||||||
r"b'https://www.example.org/\xa0localhost\n'")
|
r"b'https://www.example.org/\xa0localhost")
|
||||||
assert caplog.records[-2].message == expected
|
assert caplog.records[-2].message.startswith(expected)
|
||||||
else:
|
else:
|
||||||
finished_signal.emit()
|
finished_signal.emit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user