MCPcopy Index your code
hub / github.com/numpy/numpy / test_import_entry_point

Method test_import_entry_point

numpy/_core/tests/test_multiarray.py:4894–4902  ·  view source on GitHub ↗
(self, entry_point)

Source from the content-addressed store, hash-verified

4892 ]
4893 )
4894 def test_import_entry_point(self, entry_point):
4895 modname, _, items = entry_point.rpartition(":")
4896 if modname:
4897 module = obj = importlib.import_module(modname)
4898 else:
4899 module = np
4900 exp = functools.reduce(getattr, items.split("."), module)
4901 got = _multiarray_tests.npy_import_entry_point(entry_point)
4902 assert got == exp
4903
4904 @pytest.mark.parametrize(
4905 "entry_point",

Callers

nothing calls this directly

Calls 3

rpartitionMethod · 0.80
splitMethod · 0.80
reduceMethod · 0.45

Tested by

no test coverage detected