8000 [3.12] gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH… · python/cpython@be85f35 · GitHub
[go: up one dir, main page]

Skip to content

Commit be85f35

Browse files
[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 ba253a4) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent d492b19 commit be85f35

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

Lib/test/support/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2179,7 +2179,9 @@ def _findwheel(pkgname):
21792179
If set, the wheels are searched for in WHEEL_PKG_DIR (see ensurepip).
21802180
Otherwise, they are searched for in the test directory.
21812181
"""
2182-
wheel_dir = sysconfig.get_config_var('WHEEL_PKG_DIR') or TEST_HOME_DIR
2182+
wheel_dir = sysconfig.get_config_var('WHEEL_PKG_DIR') or os.path.join(
2183+
TEST_HOME_DIR, 'wheeldata',
2184+
)
21832185
filenames = os.listdir(wheel_dir)
21842186
filenames = sorted(filenames, reverse=True) # approximate "newest" first
21852187
for filename in filenames:

Makefile.pre.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,6 +2241,7 @@ TESTSUBDIRS= idlelib/idle_test \
22412241
test/tokenizedata \
22422242
test/tracedmodules \
22432243
test/typinganndata \
2244+
test/wheeldata \
22442245
test/xmltestdata \
22452246
test/xmltestdata/c14n-20 \
22462247
test/ziptestdata

0 commit comments

Comments
 (0)
0