8000 don't import tests · Felixhawk/scikit-learn@7e7dc78 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e7dc78

Browse files
committed
don't import tests
1 parent e42f211 commit 7e7dc78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sklearn/utils/sparsetools/tests/test_traversal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
csgraph_to_dense, csgraph_from_dense
1010
except ImportError:
1111
# Oldish versions of scipy don't have that
12-
raise SkipTest("Old version of scipy, doesn't have csgraph")
12+
raise SkipTest("Old version of scipy, doesn't have csgraph.")
1313

1414

1515
def test_graph_breadth_first():

sklearn/utils/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ def is_abstract(c):
297297
path = sklearn.__path__
298298
for importer, modname, ispkg in pkgutil.walk_packages(
299299
path=path, prefix='sklearn.', onerror=lambda x: None):
300-
module = __import__(modname, fromlist="dummy")
301300
if ".tests." in modname:
302301
continue
302+
module = __import__(modname, fromlist="dummy")
303303
classes = inspect.getmembers(module, inspect.isclass)
304304
all_classes.extend(classes)
305305

0 commit comments

Comments
 (0)
0