Repository navigation
TESTSUBDIRS missing some test directories #98822
Copy link
Copy link
Closed
Labels
buildThe build process and cross-buildThe build process and cross-buildtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
buildThe build process and cross-buildThe build process and cross-buildtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
erlend-aasland commentedon Apr 26, 2023
Would you mind submitting a PR to fix this?
asottile commentedon Apr 27, 2023
what approach should be taken here? replace it with scripting or ?
erlend-aasland commentedon Apr 27, 2023
I prefer to follow the existing approach of spelling it out. We can refactor it later if needed.
asottile commentedon Apr 27, 2023
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
erlend-aasland commentedon Apr 27, 2023
If you want to work an an improved way to do this, feel free. I'll happily accept a PR for that.
pythongh-98822: Add missing test directories to TESTSUBDIRS
gh-98822: Add missing test directories to TESTSUBDIRS (#103942)
[3.11] pythongh-98822: Add missing test directories to TESTSUBDIRS (p…
erlend-aasland commentedon Apr 27, 2023
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.
[3.11] gh-98822: Add missing test directories to TESTSUBDIRS (#103942) (
[3.11] pythongh-98822: Correct a few TESTSUBDIRS entries
[3.11] gh-98822: Correct a few TESTSUBDIRS entries (GH-103970)
johnslavik commentedon Feb 27, 2026
We are.
E.g. we're not running
test_lazy_importsin our CI: #144852 (comment)johnslavik commentedon Feb 27, 2026
This is very interesting considering we already have a test that tests that all tests are installed: #115421
johnslavik commentedon Feb 27, 2026
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.