Skip to content

Commit

Permalink
Consistent float handling in doc comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyh committed Oct 30, 2020
1 parent d99ee6f commit ced59b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ def assert_same_as_file(expected_doc: Dict, generated_file: Path, ignore_fields=
expected_doc = dump_roundtrip(expected_doc)
generated_doc = dump_roundtrip(generated_doc)

assert expected_doc == generated_doc, "\n".join(
format_doc_diffs(expected_doc, generated_doc)
)
assert_same(expected_doc, generated_doc)


def run_prepare_cli(invoke_script, *args, expect_success=True) -> Result:
Expand Down

0 comments on commit ced59b0

Please sign in to comment.