(self, entry_point)
| 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", |
nothing calls this directly
no test coverage detected