2009-07-19 17:18:21 -03:00
|
|
|
"""Main entry point"""
|
|
|
|
|
|
|
|
import sys
|
|
|
|
if sys.argv[0].endswith("__main__.py"):
|
2010-05-10 17:21:16 -03:00
|
|
|
sys.argv[0] = "python -m unittest"
|
2009-07-19 17:18:21 -03:00
|
|
|
|
2010-03-21 21:06:30 -03:00
|
|
|
__unittest = True
|
|
|
|
|
2010-03-21 23:49:08 -03:00
|
|
|
from .main import main, TestProgram, USAGE_AS_MAIN
|
|
|
|
TestProgram.USAGE = USAGE_AS_MAIN
|
2010-03-21 21:06:30 -03:00
|
|
|
|
2009-07-19 17:18:21 -03:00
|
|
|
main(module=None)
|