Commit d38e6e51 authored by Michael Foord's avatar Michael Foord

Closes issue 16064. No longer hard code executable name in unittest help output.

parent 0e1af282
...@@ -2,7 +2,14 @@ ...@@ -2,7 +2,14 @@
import sys import sys
if sys.argv[0].endswith("__main__.py"): if sys.argv[0].endswith("__main__.py"):
sys.argv[0] = "python -m unittest" import os.path
# We change sys.argv[0] to make help message more useful
# use executable without path, unquoted
# (it's just a hint anyway)
# (if you have spaces in your executable you get what you deserve!)
executable = os.path.basename(sys.executable)
sys.argv[0] = executable + " -m unittest"
del os
__unittest = True __unittest = True
......
...@@ -36,6 +36,8 @@ Core and Builtins ...@@ -36,6 +36,8 @@ Core and Builtins
Library Library
------- -------
- Issue #16064: unittest -m claims executable is "python", not "python3"
- Issue #15222: Insert blank line after each message in mbox mailboxes - Issue #15222: Insert blank line after each message in mbox mailboxes
- Issue #16013: Fix CSV Reader parsing issue with ending quote characters. - Issue #16013: Fix CSV Reader parsing issue with ending quote characters.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment