8000 Add a estimator introspection check to test_common · Felixhawk/scikit-learn@286d375 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 286d375

Browse files
ogriselamueller
authored andcommitted
Add a estimator introspection check to test_common
1 parent 311172e commit 286d375

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sklearn/tests/test_common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def test_all_estimators():
5858
estimators = all_estimators(include_meta_estimators=True)
5959
classifier = LDA()
6060

61+
# Meta sanity-check to make sure that the estimator introspection runs
62+
# properly
63+
assert_greater(len(estimators), 0)
64+
6165
for name, Estimator in estimators:
6266
# some can just not be sensibly default constructed
6367
if name in dont_test:

0 commit comments

Comments
 (0)
0