(self)
| 141 | assert_almost_equal(x**(-1), [1 / (1 + 2j)]) |
| 142 | |
| 143 | def test_scalar_compare(self): |
| 144 | # Trac Ticket #72 |
| 145 | # https://github.com/numpy/numpy/issues/565 |
| 146 | a = np.array(['test', 'auto']) |
| 147 | assert_array_equal(a == 'auto', np.array([False, True])) |
| 148 | assert_(a[1] == 'auto') |
| 149 | assert_(a[0] != 'auto') |
| 150 | b = np.linspace(0, 10, 11) |
| 151 | assert_array_equal(b != 'auto', np.ones(11, dtype=bool)) |
| 152 | assert_(b[0] != 'auto') |
| 153 | |
| 154 | def test_unicode_swapping(self): |
| 155 | # Ticket #79 |
nothing calls this directly
no test coverage detected