Skip to content

Commit a200448

Browse files
committed
lower precision of comparison for math tests a bit
CPython 3.7.3 wouldn't pass the current erfc test
1 parent d0f7247 commit a200448

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ def executeFnTest(self, values, fn, fnName):
13321332
else :
13331333
if result != expected:
13341334
if (sys.version_info.major >= 3 and sys.version_info.minor >= 5):
1335-
self.assertTrue(math.isclose(result, expected, rel_tol=1e-14), "Test3 fail: {}({}) = {}, but was {}".format(fnName, value[0], expected, result))
1335+
self.assertTrue(math.isclose(result, expected, rel_tol=1e-13), "Test3 fail: {}({}) = {}, but was {}".format(fnName, value[0], expected, result))
13361336

13371337
def test_erf(self):
13381338
erfValues = [(0.0, 0.0), (-0.0, -0.0), (INF, 1.0), (NINF, -1.0), (NAN, NAN),

0 commit comments

Comments
 (0)