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

Function __getattr__

numpy/f2py/__init__.py:179–190  ·  view source on GitHub ↗
(attr)

Source from the content-addressed store, hash-verified

177
178
179def __getattr__(attr):
180
181 # Avoid importing things that aren't needed for building
182 # which might import the main numpy module
183 if attr == "test":
184 from numpy._pytesttester import PytestTester
185 test = PytestTester(__name__)
186 return test
187
188 else:
189 raise AttributeError("module {!r} has no attribute "
190 "{!r}".format(__name__, attr))
191
192
193def __dir__():

Callers

nothing calls this directly

Calls 1

PytestTesterClass · 0.90

Tested by

no test coverage detected