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

Method test_who_with_0dim_array

numpy/lib/tests/test_regression.py:160–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 assert_(np.r_[x, x].dtype == dt)
159
160 def test_who_with_0dim_array(self):
161 # ticket #1243
162 import os
163 import sys
164
165 oldstdout = sys.stdout
166 sys.stdout = open(os.devnull, 'w')
167 try:
168 try:
169 np.who({'foo': np.array(1)})
170 except Exception:
171 raise AssertionError("ticket #1243")
172 finally:
173 sys.stdout.close()
174 sys.stdout = oldstdout
175
176 def test_include_dirs(self):
177 # As a sanity check, just test that get_include

Callers

nothing calls this directly

Calls 2

openFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected