summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_launcher.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-28 20:52:13 (GMT)
committerGitHub <noreply@github.com>2022-07-28 20:52:13 (GMT)
commit1368a1f724ebcab803644adbf764d8d30b18cfd0 (patch)
tree888af1124d692e7e95539ba2ec9cf8a4953d9a59 /Lib/test/test_launcher.py
parent9626dea86f500aa7bc4bbe7920842f979feee527 (diff)
downloadcpython-1368a1f724ebcab803644adbf764d8d30b18cfd0.zip
cpython-1368a1f724ebcab803644adbf764d8d30b18cfd0.tar.gz
cpython-1368a1f724ebcab803644adbf764d8d30b18cfd0.tar.bz2
gh-95359: Fix py.exe launcher handling of per-user py.ini and command names (GH-95399)
(cherry picked from commit 38bb2068fe1f51a74b36c46e820abc5f6422cded) Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'Lib/test/test_launcher.py')
-rw-r--r--Lib/test/test_launcher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_launcher.py b/Lib/test/test_launcher.py
index 0b7cbaa..e47078d 100644
--- a/Lib/test/test_launcher.py
+++ b/Lib/test/test_launcher.py
@@ -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()]
])