From 75c0518dfd5f42a7c202186b9bb8a0f665848a61 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Sun, 15 Jun 2025 10:35:00 +0200 Subject: [PATCH] MAINT: fix tests/module_cases.__all__ The __all__ list is used in test_testmod.py::test_public_object_discovery The test only needs the list to be present and not empty. That said, let's make __all__ actually correct, if only to save confusion going forward. --- scipy_doctest/tests/module_cases.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scipy_doctest/tests/module_cases.py b/scipy_doctest/tests/module_cases.py index 0ddc838..59ed02d 100644 --- a/scipy_doctest/tests/module_cases.py +++ b/scipy_doctest/tests/module_cases.py @@ -1,8 +1,5 @@ -__all__ = [ - 'func', 'func2', 'func3', 'func4', 'func5', 'func6', 'func8', - 'func7', 'manip_printoptions', 'array_abbreviation' -] - +""" A collection of test cases. +""" def func(): """ @@ -272,3 +269,8 @@ def list_of_tuples_numeric(): >>> [(1, 1/3), (2, 2/3)] [(1, 0.333), (2, 0.667)] """ + + +# This is used by test_testmod.py::test_public_object_discovery +# While in test we only need __all__ to be not empty, let's make it correct, too. +__all__ = [x for x in vars().keys() if not x.startswith("_")]