(self)
| 1625 | f.close() |
| 1626 | |
| 1627 | def test_complex_scalar_warning(self): |
| 1628 | for tp in [np.csingle, np.cdouble, np.clongdouble]: |
| 1629 | x = tp(1+2j) |
| 1630 | assert_warns(np.ComplexWarning, float, x) |
| 1631 | with suppress_warnings() as sup: |
| 1632 | sup.filter(np.ComplexWarning) |
| 1633 | assert_equal(float(x), float(x.real)) |
| 1634 | |
| 1635 | def test_complex_scalar_complex_cast(self): |
| 1636 | for tp in [np.csingle, np.cdouble, np.clongdouble]: |
nothing calls this directly
no test coverage detected