We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e897593 commit 37be658Copy full SHA for 37be658
src/skimage/conftest.py
@@ -0,0 +1,15 @@
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
+ raise RuntimeError("foo")
10
+ try:
11
+ import numpy as np
12
13
+ np.set_printoptions(legacy="1.21")
14
+ except ImportError:
15
+ 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