diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-11-26 13:00:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 13:00:05 -0500 |
commit | 003f341e99234cf6088341e746ffef15e12ccda2 (patch) | |
tree | e5dd021337a7b1625125d9db7e2cf5b93aa55b6a | |
parent | 78365b8e283c78e23725748500f48dd2c2ca1161 (diff) | |
download | cpython-003f341e99234cf6088341e746ffef15e12ccda2.tar.gz cpython-003f341e99234cf6088341e746ffef15e12ccda2.zip |
Fix zipfile packaging after GH-98103 (GH-99797)
* Add zipfile and test_zipfile to list of packages. Fixes regression introduced in #98103.
* Restore support for py -m test.test_zipfile
-rw-r--r-- | Lib/test/test_zipfile/__main__.py | 7 | ||||
-rw-r--r-- | Makefile.pre.in | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_zipfile/__main__.py b/Lib/test/test_zipfile/__main__.py new file mode 100644 index 00000000000..e25ac946edf --- /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() diff --git a/Makefile.pre.in b/Makefile.pre.in index 5c49af36d86..f6df7a620de 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 \ |