We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e897593 commit aa7745bCopy full SHA for aa7745b
src/skimage/conftest.py
@@ -0,0 +1,14 @@
1
+# Fixtures for doctests
2
+
3
+import pytest
4
5
6
+@pytest.fixture(autouse=True)
7
+def handle_np2():
8
+ # TODO: remove when we require numpy >= 2
9
+ try:
10
+ import numpy as np
11
12
+ np.set_printoptions(legacy="1.21")
13
+ except ImportError:
14
+ pass
src/skimage/meson.build
@@ -115,6 +115,7 @@ endif
115
python_sources = [
116
'__init__.py',
117
'__init__.pyi',
118
+ 'conftest.py',
119
'py.typed'
120
]
121
0 commit comments