gh-95359: Fix py.exe launcher handling of per-user py.ini and command names (GH-95399)

(cherry picked from commit 38bb2068fe)

Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2022-07-28 13:52:13 -07:00 committed by GitHub
parent 9626dea86f
commit 1368a1f724
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 8 deletions

View file

@ -70,7 +70,7 @@ TEST_PY_ENV = dict(
TEST_PY_COMMANDS = "\n".join([
"[defaults]",
*[f"{k.lower()}={v}" for k, v in TEST_PY_ENV.items()]
*[f"{k[3:].lower()}={v}" for k, v in TEST_PY_ENV.items()]
])