Skip to content

Commit b7e1bbd

Browse files
committed
strip whitespace when doing comparison
1 parent 708417a commit b7e1bbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_attrib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def test_lic_key_name_sync(self):
118118
errors, abouts = model.collect_inventory(test_file)
119119
attrib.generate_and_save(abouts, output_file, template_loc)
120120

121-
f1 = open(output_file, "r").read()
122-
f2 = open(expected,"r").read()
121+
f1 = open(output_file, "r").read().strip()
122+
f2 = open(expected,"r").read().strip()
123123
assert f1 == f2
124124

125125
def remove_timestamp(html_text):

0 commit comments

Comments
 (0)