pypy/objspace/std/test/test_floatobject.py::AppTestFloatHex::()::test_division_edgecases
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00000283b98da608>
def test_division_edgecases(self):
import math, os
# inf
inf = float("inf")
assert math.isnan(inf % 3)
assert math.isnan(inf // 3)
x, y = divmod(inf, 3)
assert math.isnan(x)
assert math.isnan(y)
x, y = divmod(3, inf)
z = 3 % inf
if os.name == 'nt':
> assert math.isnan(x)
E (application-level) AssertionError: assert <built-in function isnan>(0.0)
E + where <built-in function isnan> = <built-in function isnan>
E + where <built-in function isnan> = <module 'math' (built-in)>.isnan
[d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\objspace\std\test\test_floatobject.py:825]:14: AssertionError
builder: own-win-x86-64 build #2231
test: pypy/objspace/std/test/test_floatobject/py/AppTestFloatHex/()/test_division_edgecases