Skip to content

Commit bc35697

Browse files
authored
Merge pull request #205 from scipy/module_case__all__
MAINT: fix tests/module_cases.__all__
2 parents e96c2d0 + 75c0518 commit bc35697

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scipy_doctest/tests/module_cases.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
__all__ = [
2-
'func', 'func2', 'func3', 'func4', 'func5', 'func6', 'func8',
3-
'func7', 'manip_printoptions', 'array_abbreviation'
4-
]
5-
1+
""" A collection of test cases.
2+
"""
63

74
def func():
85
"""
@@ -272,3 +269,8 @@ def list_of_tuples_numeric():
272269
>>> [(1, 1/3), (2, 2/3)]
273270
[(1, 0.333), (2, 0.667)]
274271
"""
272+
273+
274+
# This is used by test_testmod.py::test_public_object_discovery
275+
# While in test we only need __all__ to be not empty, let's make it correct, too.
276+
__all__ = [x for x in vars().keys() if not x.startswith("_")]

0 commit comments

Comments
 (0)