mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00

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. ........
11 lines
166 B
Python
11 lines
166 B
Python
"""Main entry point"""
|
|
|
|
import sys
|
|
if sys.argv[0].endswith("__main__.py"):
|
|
sys.argv[0] = "unittest"
|
|
|
|
__unittest = True
|
|
|
|
|
|
from .main import main
|
|
main(module=None)
|