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 <rep...@bugs.python.org> <http://bugs.python.org/issue16064> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com