diff options
author | Matthew Barber <quitesimplymatt@gmail.com> | 2021-09-01 12:13:02 +0100 |
---|---|---|
committer | Matthew <quitesimplymatt@gmail.com> | 2021-11-04 09:15:13 +0000 |
commit | d887db45be0ede22afcfb4fb02aa4570ec6befe0 (patch) | |
tree | 5d3295c955aa47910928dd4a832a690dadba5abd /numpy/tests/test_public_api.py | |
parent | 2d601825d4bcb447911d063519c78bb5d5101dec (diff) | |
download | numpy-d887db45be0ede22afcfb4fb02aa4570ec6befe0.tar.gz |
Use ep.load() instead of import_module() to get xp
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
Diffstat (limited to 'numpy/tests/test_public_api.py')
-rw-r--r-- | numpy/tests/test_public_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py index 26402fa2a..1eca25afb 100644 --- a/numpy/tests/test_public_api.py +++ b/numpy/tests/test_public_api.py @@ -481,7 +481,7 @@ def test_array_api_entry_point(): except StopIteration: raise AssertionError("'numpy' not in array_api entry points") from None - xp = importlib.import_module(ep.value) + xp = ep.load() msg = ( f"numpy entry point value '{ep.value}' " "does not point to our Array API implementation" |