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:
Ryan Roden-Corrent 2017-06-09 12:07:39 -04:00
parent 679e001a48
commit cf23f42b99

View File

@ -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