Skip to content

Commit 6344c0b

Browse files
committed
test: print debug test for upstream
1 parent 2939e16 commit 6344c0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_zarr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_print_debug_info(capsys: pytest.CaptureFixture[str]) -> None:
1717
"""
1818
Ensure that print_debug_info does not raise an error
1919
"""
20-
from numpy import __version__ as np_v
20+
from importlib.metadata import version
2121

2222
from zarr import __version__, print_debug_info
2323

@@ -26,4 +26,4 @@ def test_print_debug_info(capsys: pytest.CaptureFixture[str]) -> None:
2626
# test that at least some of what we expect is
2727
# printed out
2828
assert f"zarr: {__version__}" in captured.out
29-
assert f"numpy: {np_v}" in captured.out
29+
assert f"numpy: {version('numpy')}" in captured.out

0 commit comments

Comments
 (0)