We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2939e16 commit 6344c0bCopy full SHA for 6344c0b
tests/test_zarr.py
@@ -17,7 +17,7 @@ def test_print_debug_info(capsys: pytest.CaptureFixture[str]) -> None:
17
"""
18
Ensure that print_debug_info does not raise an error
19
20
- from numpy import __version__ as np_v
+ from importlib.metadata import version
21
22
from zarr import __version__, print_debug_info
23
@@ -26,4 +26,4 @@ def test_print_debug_info(capsys: pytest.CaptureFixture[str]) -> None:
26
# test that at least some of what we expect is
27
# printed out
28
assert f"zarr: {__version__}" in captured.out
29
- assert f"numpy: {np_v}" in captured.out
+ assert f"numpy: {version('numpy')}" in captured.out
0 commit comments