diff options
author | Ryan Roden-Corrent <ryan@rcorre.net> | 2017-06-09 12:07:39 -0400 |
---|---|---|
committer | Ryan Roden-Corrent <ryan@rcorre.net> | 2017-06-19 07:44:11 -0400 |
commit | cf23f42b99f99c170c2a42511aabf53d6b51ae82 (patch) | |
tree | 2e85df4a9a5be330f80f1c29adb628d4ef5a28f0 /tests/end2end/features/test_history_bdd.py | |
parent | 679e001a48d763b8fed7788ad4f4ccef6900d906 (diff) | |
download | qutebrowser-cf23f42b99f99c170c2a42511aabf53d6b51ae82.tar.gz qutebrowser-cf23f42b99f99c170c2a42511aabf53d6b51ae82.zip |
Use splitlines in test_history_bdd again.
Just using read() returns a single string, and iterating over that
iterates over each character.
Diffstat (limited to 'tests/end2end/features/test_history_bdd.py')
-rw-r--r-- | tests/end2end/features/test_history_bdd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end2end/features/test_history_bdd.py b/tests/end2end/features/test_history_bdd.py index 75f20efcb..ce9faeca9 100644 --- a/tests/end2end/features/test_history_bdd.py +++ b/tests/end2end/features/test_history_bdd.py @@ -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 |