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