Skip to content

Commit 65ed969

Browse files
committed
tests: remove irrelevant whitespace from strings before comparing
1 parent 225bcef commit 65ed969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_distanceprinter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,9 @@ def test_distanceprinter(monkeypatch):
4949
# Remove stru file path when comparing as it may differ between machines
5050
resultstr = resultstr.split("\n", 2)[2]
5151
teststr = teststr.split("\n", 2)[2]
52+
53+
# Remove irrelevant whitespace when comparing
54+
resultstr = "".join(resultstr.split())
55+
teststr = "".join(teststr.split())
56+
5257
assert resultstr == teststr

0 commit comments

Comments
 (0)