Skip to content

Commit

Permalink
Use more generous rounding tolerance on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
brianschubert committed Sep 11, 2023
1 parent be5ed07 commit 9f5e618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def test_exec_matches(sixs_version, manual_input_file, helpers) -> None:

# Use more generous tolerance on macOS, where rounding differences between
# runs have been observed.
abs_tol = 1e-4 if sys.platform == "darwin" else 0.0
rel_tol = 1e-3 if sys.platform == "darwin" else 1e-09

for d_line, c_line in zip(direct_lines, cli_lines):
helpers.assert_embedded_isclose(d_line, c_line, abs_tol=abs_tol)
helpers.assert_embedded_isclose(d_line, c_line, rel_tol=rel_tol)


def test_exec_eof(sixs_version) -> None:
Expand Down

0 comments on commit 9f5e618

Please sign in to comment.