[New-bugs-announce] [issue16064] unittest -m claims executable is "python", not "python3"
Larry Hastings
report at bugs.python.org
Thu Sep 27 20:41:20 CEST 2012
New submission from Larry Hastings:
I wrote the following script called "bonkers.py":
--
import sys
print(sys.argv[0])
--
then ran
% python3 -m unittest bonkers
It printed
--
['python -m unittest', 'bonkers']
--
Shouldn't it say "python3", not "python"? Maybe it should use sys.executable? (Though that gets tricky if there are spaces in the filename.)
----------
assignee: michael.foord
components: Library (Lib)
messages: 171387
nosy: larry, michael.foord
priority: normal
severity: normal
stage: needs patch
status: open
title: unittest -m claims executable is "python", not "python3"
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16064>
_______________________________________
More information about the New-bugs-announce
mailing list