]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (#114343)
authorNikita Sobolev <mail@sobolevn.me>
Tue, 23 Jan 2024 15:33:12 +0000 (18:33 +0300)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 15:33:12 +0000 (16:33 +0100)
Lib/test/support/__init__.py
Lib/test/wheeldata/setuptools-67.6.1-py3-none-any.whl [moved from Lib/test/setuptools-67.6.1-py3-none-any.whl with 100% similarity]
Lib/test/wheeldata/wheel-0.40.0-py3-none-any.whl [moved from Lib/test/wheel-0.40.0-py3-none-any.whl with 100% similarity]
Makefile.pre.in

index 8344dd1849c61d46faf7d364c43d516308b9b8b7..f2e6af078a5f2918e74e6995945d03b61addfaac 100644 (file)
@@ -2193,7 +2193,9 @@ def _findwheel(pkgname):
     If set, the wheels are searched for in WHEEL_PKG_DIR (see ensurepip).
     Otherwise, they are searched for in the test directory.
     """
-    wheel_dir = sysconfig.get_config_var('WHEEL_PKG_DIR') or TEST_HOME_DIR
+    wheel_dir = sysconfig.get_config_var('WHEEL_PKG_DIR') or os.path.join(
+        TEST_HOME_DIR, 'wheeldata',
+    )
     filenames = os.listdir(wheel_dir)
     filenames = sorted(filenames, reverse=True)  # approximate "newest" first
     for filename in filenames:
index 1107259b5ae1ca828bbde6f3d9c8d56af0a28344..21b122ae0fcd9fd0a2f3e7100223636c08842088 100644 (file)
@@ -2318,6 +2318,7 @@ TESTSUBDIRS=      idlelib/idle_test \
                test/tokenizedata \
                test/tracedmodules \
                test/typinganndata \
+               test/wheeldata \
                test/xmltestdata \
                test/xmltestdata/c14n-20