Skip to content

Commit c1c0c0d

Browse files
author
Nathan Gillett
committed
test: strip fixture trailing newline before canon compare
policy_body_canon.json may end with a newline; canonicalize does not. Signed-off-by: Nathan Gillett <nathan@intentproof.io>
1 parent 33d631f commit c1c0c0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_canon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_byte_equality_with_go_fixture(self):
215215
os.path.dirname(__file__), "fixtures", "policy_body_canon.json"
216216
)
217217
with open(fixture_path, "r", encoding="utf-8") as f:
218-
want = f.read()
218+
want = f.read().rstrip("\r\n")
219219
self.assertEqual(got, want)
220220

221221

0 commit comments

Comments
 (0)