Skip to content

Commit

Permalink
MNT Define "message" since exception might happen in initial import (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic authored and jnothman committed Jul 27, 2018
1 parent ed5e127 commit f0ab589
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sklearn/tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def test_import_skl():
def test_import_sklearn_no_warnings():
# Test that importing scikit-learn main modules doesn't raise any warnings.

message = "No message yet"
try:
pkgs = pkgutil.iter_modules(path=sklearn.__path__, prefix='sklearn.')
import_modules = '; '.join(['import ' + modname
Expand Down

0 comments on commit f0ab589

Please sign in to comment.