forked from scikit-image/scikit-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conftest.py
25 lines (21 loc) · 927 Bytes
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use legacy numpy printing. This fix is made to keep doctests functional.
# For more info, see https://github.com/scikit-image/scikit-image/pull/2935 .
# TODO: remove this workaround once minimal required numpy is set to 1.14.0
from distutils.version import LooseVersion as Version
import numpy as np
if Version(np.__version__) >= Version('1.14'):
np.set_printoptions(legacy='1.13')
# List of files that pytest should ignore
collect_ignore = ["setup.py",
"skimage/io/_plugins",
"doc/",
"tools/",
"viewer_examples"]
try:
import visvis
except ImportError:
collect_ignore.append("skimage/measure/mc_meta/visual_test.py")
# importing skimage.novice issues some warnings. Without these lines,
# pytest issues numerous warnings when crawling the package.
import warnings
warnings.filterwarnings('ignore', message='The `skimage.novice` module')