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 ffe0583 commit cc66ffaCopy full SHA for cc66ffa
sklearn/tests/test_init.py
@@ -4,10 +4,8 @@
4
5
import pkgutil
6
7
-import pytest
8
-
9
import sklearn
10
-from sklearn.utils.testing import assert_equal
+from sklearn.utils.testing import assert_equal, SkipTest
11
12
__author__ = 'Yaroslav Halchenko'
13
__license__ = 'BSD'
@@ -55,5 +53,5 @@ def test_import_sklearn_no_warnings():
55
53
assert 'Error' not in message
56
54
57
except Exception as e:
58
- pytest.skip('soft-failed test_import_sklearn_no_warnings.\n'
59
- ' %s' % e)
+ raise SkipTest('soft-failed test_import_sklearn_no_warnings.\n'
+ ' %s' % e)
0 commit comments