File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import sys
44if sys .argv [0 ].endswith ("__main__.py" ):
5- sys .argv [0 ] = "python -m unittest"
5+ import os .path
6+ # We change sys.argv[0] to make help message more useful
7+ # use executable without path, unquoted
8+ # (it's just a hint anyway)
9+ # (if you have spaces in your executable you get what you deserve!)
10+ executable = os .path .basename (sys .executable )
11+ sys .argv [0 ] = executable + " -m unittest"
12+ del os
613
714__unittest = True
815
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ Core and Builtins
3636Library
3737-------
3838
39+ - Issue #16064: unittest -m claims executable is "python", not "python3"
40+
3941- Issue #15222: Insert blank line after each message in mbox mailboxes
4042
4143- Issue #16013: Fix CSV Reader parsing issue with ending quote characters.
You can’t perform that action at this time.
0 commit comments