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