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

Function check_importable

numpy/tests/test_public_api.py:451–457  ·  view source on GitHub ↗
(module_name)

Source from the content-addressed store, hash-verified

449 needed - apply common sense).
450 """
451 def check_importable(module_name):
452 try:
453 importlib.import_module(module_name)
454 except (ImportError, AttributeError):
455 return False
456
457 return True
458
459 module_names = []
460 for module_name in PUBLIC_MODULES:

Callers 1

test_api_importableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected