gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (#114343)

This commit is contained in:
Nikita Sobolev 2024-01-23 18:33:12 +03:00 committed by GitHub
parent 01105c7c4f
commit ba253a4794
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 1 deletions

View 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:

View File

@ -2318,6 +2318,7 @@ TESTSUBDIRS= idlelib/idle_test \
test/tokenizedata \
test/tracedmodules \
test/typinganndata \
test/wheeldata \
test/xmltestdata \
test/xmltestdata/c14n-20