(self)
| 89 | |
| 90 | class TestIinfo: |
| 91 | def test_basic(self): |
| 92 | dts = list(zip(['i1', 'i2', 'i4', 'i8', |
| 93 | 'u1', 'u2', 'u4', 'u8'], |
| 94 | [np.int8, np.int16, np.int32, np.int64, |
| 95 | np.uint8, np.uint16, np.uint32, np.uint64])) |
| 96 | for dt1, dt2 in dts: |
| 97 | assert_iinfo_equal(iinfo(dt1), iinfo(dt2)) |
| 98 | |
| 99 | assert_raises(ValueError, iinfo, 'f4') |
| 100 | |
| 101 | def test_unsigned_max(self): |
| 102 | types = np._core.sctypes['uint'] |
nothing calls this directly
no test coverage detected