Skip to content

TESTSUBDIRS missing some test directories #98822

Closed

Description

@asottile

Bug report

I noticed this when test_sqlite3 was missing from the installed tests

Your environment

3.11+ though I suspect some other versions might have inaccurate testdir listings too

here's the missing ones for the current primary branch for example:

diff --git a/Makefile.pre.in b/Makefile.pre.in
index 9961a864cb..9a19b5c147 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1963,6 +1963,7 @@ LIBSUBDIRS=	asyncio \
 		xmlrpc \
 		zoneinfo \
 		__phello__
+# find Lib/test/ -type d | cut -d/ -f2- | sort | grep -Ev '(crashers|leakers)' | xargs --replace echo $'\t\t{} \\'
 TESTSUBDIRS=	distutils/tests \
 		idlelib/idle_test \
 		test \
@@ -1972,7 +1973,6 @@ TESTSUBDIRS=	distutils/tests \
 		test/data \
 		test/decimaltestdata \
 		test/dtracedata \
-		test/eintrdata \
 		test/encoded_modules \
 		test/imghdrdata \
 		test/libregrtest \
@@ -2039,7 +2039,26 @@ TESTSUBDIRS=	distutils/tests \
 		test/test_lib2to3/data/fixers \
 		test/test_lib2to3/data/fixers/myfixes \
 		test/test_peg_generator \
+		test/test_sqlite3 \
 		test/test_tkinter \
+		test/test_tomllib \
+		test/test_tomllib/data \
+		test/test_tomllib/data/invalid \
+		test/test_tomllib/data/invalid/array \
+		test/test_tomllib/data/invalid/array-of-tables \
+		test/test_tomllib/data/invalid/boolean \
+		test/test_tomllib/data/invalid/dates-and-times \
+		test/test_tomllib/data/invalid/dotted-keys \
+		test/test_tomllib/data/invalid/inline-table \
+		test/test_tomllib/data/invalid/keys-and-vals \
+		test/test_tomllib/data/invalid/literal-str \
+		test/test_tomllib/data/invalid/multiline-basic-str \
+		test/test_tomllib/data/invalid/multiline-literal-str \
+		test/test_tomllib/data/invalid/table \
+		test/test_tomllib/data/valid \
+		test/test_tomllib/data/valid/array \
+		test/test_tomllib/data/valid/dates-and-times \
+		test/test_tomllib/data/valid/multiline-basic-str \
 		test/test_tools \
 		test/test_ttk \
 		test/test_unittest \

let me know if you'd like me to send patch(es) or if there's a more programmatic way to handle this

Linked PRs

Activity

  1. erlend-aasland commented on Apr 26, 2023

    @erlend-aasland
    Contributor

    Would you mind submitting a PR to fix this?

  2. asottile commented on Apr 27, 2023

    @asottile
    ContributorAuthor

    what approach should be taken here? replace it with scripting or ?

  3. erlend-aasland commented on Apr 27, 2023

    @erlend-aasland
    Contributor

    I prefer to follow the existing approach of spelling it out. We can refactor it later if needed.

  4. asottile commented on Apr 27, 2023

    @asottile
    ContributorAuthor

    someone else can pick it up then. I'm not super interested in working on it and this is just going to regress again otherwise

  5. erlend-aasland commented on Apr 27, 2023

    @erlend-aasland
    Contributor

    If you want to work an an improved way to do this, feel free. I'll happily accept a PR for that.

  6. added 3 commits that reference this issue on Apr 27, 2023
  7. erlend-aasland commented on Apr 27, 2023

    @erlend-aasland
    Contributor

    When the backport is merged, I'll close this. I'll consider opening a new issue for tracking the idea of doing this in a more dynamic way. As noted, we'll likely be hit by the same bug again, as long as this dir list is manually updated.

  8. added a commit that references this issue on Apr 27, 2023
  9. added 2 commits that reference this issue on Apr 28, 2023
  10. johnslavik commented on Feb 27, 2026

    @johnslavik
    Member

    we'll likely be hit by the same bug again, as long as this dir list is manually updated.

    We are.

    E.g. we're not running test_lazy_imports in our CI: #144852 (comment)

  11. johnslavik commented on Feb 27, 2026

    @johnslavik
    Member

    This is very interesting considering we already have a test that tests that all tests are installed: #115421

  12. johnslavik commented on Feb 27, 2026

    @johnslavik
    Member

    I was confused. I believe the problem is in libregrtest.findtests, I'll open another issue. I think this issue is regression-tested by #115421.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions