MCPcopy Create free account
hub / github.com/numpy/numpy / test_str

Method test_str

numpy/core/tests/test__exceptions.py:20–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 assert res._total_size == error._total_size
19
20 def test_str(self):
21 e = _ArrayMemoryError((1023,), np.dtype(np.uint8))
22 str(e) # not crashing is enough
23
24 # testing these properties is easier than testing the full string repr
25 def test__size_to_string(self):

Callers

nothing calls this directly

Calls 2

_ArrayMemoryErrorClass · 0.85
dtypeMethod · 0.45

Tested by

no test coverage detected