(self)
| 3128 | assert_raises(RuntimeError, ncu.frexp, 1, ok, bad) |
| 3129 | |
| 3130 | def test_none_wrap(self): |
| 3131 | # Tests that issue #8507 is resolved. Previously, this would segfault |
| 3132 | |
| 3133 | class A: |
| 3134 | def __array__(self): |
| 3135 | return np.zeros(1) |
| 3136 | |
| 3137 | def __array_wrap__(self, arr, context=None): |
| 3138 | return None |
| 3139 | |
| 3140 | a = A() |
| 3141 | assert_equal(ncu.maximum(a, a), None) |
| 3142 | |
| 3143 | def test_default_prepare(self): |
| 3144 |
nothing calls this directly
no test coverage detected