~jfb-tempo-consulting/unifield-wm/sync-env-py3

« back to all changes in this revision

Viewing changes to unittest27/__main__.py

  • Committer: Samus CTO
  • Date: 2012-09-05 10:40:27 UTC
  • Revision ID: cto@openerp.com-20120905104027-geoynct7122bnoig
[IMPORT] imported unittest from Python 2.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""Main entry point"""
 
2
 
 
3
import sys
 
4
if sys.argv[0].endswith("__main__.py"):
 
5
    sys.argv[0] = "python -m unittest"
 
6
 
 
7
__unittest = True
 
8
 
 
9
from .main import main, TestProgram, USAGE_AS_MAIN
 
10
TestProgram.USAGE = USAGE_AS_MAIN
 
11
 
 
12
main(module=None)