BUG: Fixed IntegerArray.array_ufunc with nout (#36913) · pandas-dev/pandas@4e55346 (original) (raw)
`@@ -64,6 +64,20 @@ def test_ufuncs_binary_int(ufunc):
`
64
64
`tm.assert_extension_array_equal(result, expected)
`
65
65
``
66
66
``
``
67
`+
def test_ufunc_binary_output():
`
``
68
`+
a = integer_array([1, 2, np.nan])
`
``
69
`+
result = np.modf(a)
`
``
70
`+
expected = np.modf(a.to_numpy(na_value=np.nan, dtype="float"))
`
``
71
+
``
72
`+
assert isinstance(result, tuple)
`
``
73
`+
assert len(result) == 2
`
``
74
+
``
75
`+
for x, y in zip(result, expected):
`
``
76
`+
TODO(FloatArray): This will return an extension array.
`
``
77
`+
y = integer_array(y)
`
``
78
`+
tm.assert_numpy_array_equal(x, y)
`
``
79
+
``
80
+
67
81
`@pytest.mark.parametrize("values", [[0, 1], [0, None]])
`
68
82
`def test_ufunc_reduce_raises(values):
`
69
83
`a = integer_array(values)
`