Use splitlines in test_history_bdd again.
Just using read() returns a single string, and iterating over that iterates over each character.
This commit is contained in:
parent
679e001a48
commit
cf23f42b99
@ -37,7 +37,7 @@ def check_history(quteproc, httpbin, tmpdir, expected):
|
||||
with open(path, 'r', encoding='utf-8') as f:
|
||||
# ignore access times, they will differ in each run
|
||||
actual = '\n'.join(re.sub('^\\d+-?', '', line).strip()
|
||||
for line in f.read())
|
||||
for line in f.read().splitlines())
|
||||
|
||||
expected = expected.replace('(port)', str(httpbin.port))
|
||||
assert actual == expected
|
||||
|
Loading…
Reference in New Issue
Block a user