]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH-114343) (#114488)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 23 Jan 2024 15:58:44 +0000 (16:58 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 15:58:44 +0000 (15:58 +0000)
gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH-114343)
(cherry picked from commit ba253a4794ae2d35a6f6df46a98a1ed38bd61268)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
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 fd9265c93c35f35d537d9ae55994841c27dcd6db..8c4b4e023f633fe2a9bc52aebf6abbe7e34ee79c 100644 (file)
@@ -2179,7 +2179,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 e6f6e6c675a641e0cec2e94d46b550eacab35ba6..7f46f340efe038f2cbe959f4e2643f023eeea974 100644 (file)
@@ -2241,6 +2241,7 @@ TESTSUBDIRS=      idlelib/idle_test \
                test/tokenizedata \
                test/tracedmodules \
                test/typinganndata \
+               test/wheeldata \
                test/xmltestdata \
                test/xmltestdata/c14n-20 \
                test/ziptestdata