Skip to content

TESTSUBDIRS missing some test directories #98822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
asottile opened this issue Oct 28, 2022 · 8 comments
Closed

TESTSUBDIRS missing some test directories #98822

asottile opened this issue Oct 28, 2022 · 8 comments
Labels
build The build process and cross-build tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@asottile
Copy link
Contributor

asottile commented Oct 28, 2022

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

@asottile asottile added the type-bug An unexpected behavior, bug, or error label Oct 28, 2022
@mdboom mdboom added the tests Tests in the Lib/test dir label Oct 28, 2022
@erlend-aasland erlend-aasland added the build The build process and cross-build label Apr 26, 2023
@erlend-aasland
Copy link
Contributor

Would you mind submitting a PR to fix this?

@asottile
Copy link
Contributor Author

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

@erlend-aasland
Copy link
Contributor

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

@asottile
Copy link
Contributor Author

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
Copy link
Contributor

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

@erlend-aasland
Copy link
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.

zware added a commit to zware/cpython that referenced this issue Apr 28, 2023
A few differences from the main branch were missed in pythonGH-103946.
zware added a commit that referenced this issue Apr 28, 2023
A few differences from the main branch were missed in GH-103946.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants
@mdboom @asottile @erlend-aasland and others