Thank you for investigating Victor.
This appears to require backporting to 3.6 and 3.5 which are also failing:
FAIL: test_repr (test.test_float.ReprTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.5.koobs-freebsd-current.nondebug/build/Lib/test/test_float.py", line 674, in test_repr
self.assertEqual(v, eval(repr(v)))
AssertionError: 5.311000000000001e+245 != 5.311000000000002e+245
----------------------------------------------------------------------
Ran 42 tests in 0.242s
FAILED (failures=1, skipped=1)
7 tests failed again:
test_cmath test_float test_json test_marshal test_math
test_statistics test_strtod |