Test e._total_size
(self)
| 45 | assert f(Ki*Ki*Ki*Ki*Ki*Ki*123456) == '123456. EiB' |
| 46 | |
| 47 | def test__total_size(self): |
| 48 | """ Test e._total_size """ |
| 49 | e = _ArrayMemoryError((1,), np.dtype(np.uint8)) |
| 50 | assert e._total_size == 1 |
| 51 | |
| 52 | e = _ArrayMemoryError((2, 4), np.dtype((np.uint64, 16))) |
| 53 | assert e._total_size == 1024 |
| 54 | |
| 55 | |
| 56 | class TestUFuncNoLoopError: |
nothing calls this directly
no test coverage detected