From 9f5e61855a5627405ffa1b02a261ffa7234bae64 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Mon, 11 Sep 2023 12:36:59 -0400 Subject: [PATCH] Use more generous rounding tolerance on macOS --- test/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_cli.py b/test/test_cli.py index bc2bab2..df1fa6f 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -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: