]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix zipfile packaging after GH-98103 (GH-99797)
authorJason R. Coombs <jaraco@jaraco.com>
Sat, 26 Nov 2022 18:00:05 +0000 (13:00 -0500)
committerGitHub <noreply@github.com>
Sat, 26 Nov 2022 18:00:05 +0000 (13:00 -0500)
* Add zipfile and test_zipfile to list of packages. Fixes regression introduced in #98103.

* Restore support for py -m test.test_zipfile

Lib/test/test_zipfile/__main__.py [new file with mode: 0644]
Makefile.pre.in

diff --git a/Lib/test/test_zipfile/__main__.py b/Lib/test/test_zipfile/__main__.py
new file mode 100644 (file)
index 0000000..e25ac94
--- /dev/null
@@ -0,0 +1,7 @@
+import unittest
+
+from . import load_tests  # noqa: F401
+
+
+if __name__ == "__main__":
+    unittest.main()
index 5c49af36d86736913a66caeea15013e79159698e..f6df7a620deaed3cbe2f5b91369fc826a91ca2e9 100644 (file)
@@ -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 \