We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f636faf commit 6be252bCopy full SHA for 6be252b
conftest.py
@@ -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