From 519db86ace07e6ded2f5ec3e78233d9c5c9742ad Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 26 Nov 2022 12:24:39 -0500 Subject: [PATCH 1/2] Add zipfile and test_zipfile to list of packages. Fixes regression introduced in #98103. --- Makefile.pre.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.pre.in b/Makefile.pre.in index 5c49af36d86736..f6df7a620deaed 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1978,6 +1978,7 @@ LIBSUBDIRS= asyncio \ wsgiref \ $(XMLLIBSUBDIRS) \ xmlrpc \ + zipfile \ zoneinfo \ __phello__ TESTSUBDIRS= idlelib/idle_test \ @@ -2051,6 +2052,7 @@ TESTSUBDIRS= idlelib/idle_test \ test/test_tools \ test/test_ttk \ test/test_warnings test/test_warnings/data \ + test/test_zipfile \ test/test_zoneinfo test/test_zoneinfo/data \ test/test_unittest test/test_unittest/testmock \ test/tracedmodules \ From d8be03d2f1a2f0d0ea908890c79c4545fc7fa4f4 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 26 Nov 2022 12:25:11 -0500 Subject: [PATCH 2/2] Restore support for py -m test.test_zipfile --- Lib/test/test_zipfile/__main__.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Lib/test/test_zipfile/__main__.py diff --git a/Lib/test/test_zipfile/__main__.py b/Lib/test/test_zipfile/__main__.py new file mode 100644 index 00000000000000..e25ac946edffe4 --- /dev/null +++ b/Lib/test/test_zipfile/__main__.py @@ -0,0 +1,7 @@ +import unittest + +from . import load_tests # noqa: F401 + + +if __name__ == "__main__": + unittest.main()