diff --git a/tests/renderer/utils.py b/tests/renderer/utils.py index 1e0b7c3e030f2e180fae16d61604e590a4d0d1cf..f133f7dc262f66ce5248aaadfe0b2fe788925070 100644 --- a/tests/renderer/utils.py +++ b/tests/renderer/utils.py @@ -31,7 +31,6 @@ the United Nations Convention on Contracts on the International Sales of Goods. """ import errno -import filecmp import logging import os import re @@ -504,6 +503,7 @@ def compare_renderer_args( ref_kwargs: Dict, cut_kwargs: Dict, split_comparison=False, + atol=2, ): out_file_ref = run_renderer( record_property, @@ -525,7 +525,9 @@ def compare_renderer_args( split_comparison=split_comparison, ) cut, cut_fs = readfile(out_file_cut) - [diff_found, snr, gain_b, max_diff] = check_BE(test_info, ref, ref_fs, cut, cut_fs) + [diff_found, snr, gain_b, max_diff] = check_BE( + test_info, ref, ref_fs, cut, cut_fs, atol + ) if diff_found: pytest.fail( f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}"