summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-01-23 15:58:44 (GMT)
committerGitHub <noreply@github.com>2024-01-23 15:58:44 (GMT)
commitbe85f35f12bebc669b0aa1c2e9cdd0624fb32a10 (patch)
tree3b6f81a0253282e3be1cd0fbb18bc1797808f067 /Lib/test
parentd492b19856e6cd05d33ce6264d2733cb926b02f4 (diff)
downloadcpython-be85f35f12bebc669b0aa1c2e9cdd0624fb32a10.zip
cpython-be85f35f12bebc669b0aa1c2e9cdd0624fb32a10.tar.gz
cpython-be85f35f12bebc669b0aa1c2e9cdd0624fb32a10.tar.bz2
[3.12] gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH-114343) (#114488)
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>
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/support/__init__.py4
-rw-r--r--Lib/test/wheeldata/setuptools-67.6.1-py3-none-any.whl (renamed from Lib/test/setuptools-67.6.1-py3-none-any.whl)bin1089263 -> 1089263 bytes
-rw-r--r--Lib/test/wheeldata/wheel-0.40.0-py3-none-any.whl (renamed from Lib/test/wheel-0.40.0-py3-none-any.whl)bin64545 -> 64545 bytes
3 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index fd9265c..8c4b4e0 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -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:
diff --git a/Lib/test/setuptools-67.6.1-py3-none-any.whl b/Lib/test/wheeldata/setuptools-67.6.1-py3-none-any.whl
index 4b7ffd2..4b7ffd2 100644
--- a/Lib/test/setuptools-67.6.1-py3-none-any.whl
+++ b/Lib/test/wheeldata/setuptools-67.6.1-py3-none-any.whl
Binary files differ
diff --git a/Lib/test/wheel-0.40.0-py3-none-any.whl b/Lib/test/wheeldata/wheel-0.40.0-py3-none-any.whl
index 4101323..4101323 100644
--- a/Lib/test/wheel-0.40.0-py3-none-any.whl
+++ b/Lib/test/wheeldata/wheel-0.40.0-py3-none-any.whl
Binary files differ