mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merged revisions 79263 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79263 | michael.foord | 2010-03-21 19:06:30 -0500 (Sun, 21 Mar 2010) | 1 line Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest. ........
This commit is contained in:
parent
a6884fc0fd
commit
dccc1fcfaf
10 changed files with 30 additions and 5 deletions
|
@ -4,5 +4,8 @@ import sys
|
|||
if sys.argv[0].endswith("__main__.py"):
|
||||
sys.argv[0] = "unittest"
|
||||
|
||||
__unittest = True
|
||||
|
||||
|
||||
from .main import main
|
||||
main(module=None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue