8000 ENH: allow importlib.LazyLoader to work with numpy and add test of this by dschult · Pull Request #22045 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: allow importlib.LazyLoader to work with numpy and add test of this #22045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix linting
  • Loading branch information
dschult committed Jul 25, 2022
commit 229fdcad13336d23308fa6e82eb277bab6c56ef6
3 changes: 2 additions & 1 deletion numpy/tests/test_lazyloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_lazy_load():

try:
# create lazy load of numpy as np
spec = find_spec("numpy")
spec = find_spec("numpy")
module = module_from_spec(spec)
sys.modules["numpy"] = module
loader = LazyLoader(spec.loader)
Expand All @@ -27,6 +27,7 @@ def test_lazy_load():

# test a subpackage import
from numpy.lib import recfunctions

# test triggering the import of the package
np.ndarray

Expand Down
0