Skip to content

Commit 6be252b

Browse files
authored
MAINT add conftest to pass the docstring (#392)
1 parent f636faf commit 6be252b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is here so that when running from the root folder
2+
# ./sklearn is added to sys.path by pytest.
3+
# See https://docs.pytest.org/en/latest/pythonpath.html for more details.
4+
# For example, this allows to build extensions in place and run pytest
5+
# doc/modules/clustering.rst and use sklearn from the local folder
6+
# rather than the one from site-packages.
7+
8+
# Set numpy array str/repr to legacy behaviour on numpy > 1.13 to make
9+
# the doctests pass
10+
import numpy as np
11+
try:
12+
np.set_printoptions(legacy='1.13')
13+
except TypeError:
14+
pass

0 commit comments

Comments
 (0)