mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
[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 ba253a4794
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
d492b19856
commit
be85f35f12
4 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -2241,6 +2241,7 @@ TESTSUBDIRS= idlelib/idle_test \
|
|||
test/tokenizedata \
|
||||
test/tracedmodules \
|
||||
test/typinganndata \
|
||||
test/wheeldata \
|
||||
test/xmltestdata \
|
||||
test/xmltestdata/c14n-20 \
|
||||
test/ziptestdata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue