(self)
| 60 | |
| 61 | class TestFinfo: |
| 62 | def test_basic(self): |
| 63 | dts = list(zip(['f2', 'f4', 'f8', 'c8', 'c16'], |
| 64 | [np.float16, np.float32, np.float64, np.complex64, |
| 65 | np.complex128])) |
| 66 | for dt1, dt2 in dts: |
| 67 | assert_finfo_equal(finfo(dt1), finfo(dt2)) |
| 68 | |
| 69 | assert_raises(ValueError, finfo, 'i4') |
| 70 | |
| 71 | def test_regression_gh23108(self): |
| 72 | # np.float32(1.0) and np.float64(1.0) have the same hash and are |
nothing calls this directly
no test coverage detected