diff --git a/sDNA/sdna_vs2008/tests/pytest/test_gathering_windows_command_line_tests.py b/sDNA/sdna_vs2008/tests/pytest/test_gathering_windows_command_line_tests.py index 6e2d5768..b944476a 100644 --- a/sDNA/sdna_vs2008/tests/pytest/test_gathering_windows_command_line_tests.py +++ b/sDNA/sdna_vs2008/tests/pytest/test_gathering_windows_command_line_tests.py @@ -541,7 +541,7 @@ def almost_equal(a, b, abs_tol = 2e-15): last_a = match_a.end(0) last_b = match_b.end(0) - if math.abs(float(match_a.group(0)) - float(match_b.group(0))) > abs_tol: + if abs(float(match_a.group(0)) - float(match_b.group(0))) > abs_tol: print('float(match_a.group(0)): %s, float(match_b.group(0)): %s' % (float(match_a.group(0)), float(match_b.group(0)))) return False