

def test_pow_with_nan(self, space):
    w_res = space.execute('return (0.0 / 0.0) ** 1')
    assert math.isnan(self.unwrap(space, w_res))
    w_res = space.execute('return 1.0 ** (0.0 / 0.0)')
    assert (self.unwrap(space, w_res) == 1.0)
    w_res = space.execute('return 1.0 ** (0.0 / 0.0)')
    assert (w_res.unwrap(space, w_res) == 1.0)

dataset/ETHPy150Open topazproject/topaz/tests/objects/test_floatobject.py TestFloatObject.test_pow_with_nan/VarMisuse@70/143 `self`->`w_res`