Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ setup_method
Method
setup_method
numpy/core/tests/test_defchararray.py:151–152 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
149
150
class
TestChar:
151
def
setup_method(self):
152
self.A = np.array(
'abc1'
, dtype=
'c'
).view(np.chararray)
153
154
def
test_it(self):
155
assert_equal(self.A.shape, (4,))
Callers
2
setup_method
Method · 0.45
setup_method
Method · 0.45
Calls
1
view
Method · 0.45
Tested by
no test coverage detected