<s> """<STR_LIT>""" <EOL> NOSE_ARGS = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> COVERAGE_EXTRA_ARGS = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> DEFAULT_ATTRS = [ ] <EOL> DEFAULT_DIRS = [ '<STR_LIT:test>' , '<STR_LIT>' ] <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from sys import argv , exit , stderr <EOL> try : import nose <EOL> except ImportError : <EOL> print >> stderr , """<STR_LIT>""" ; exit ( <NUM_LIT:1> ) <EOL> if '<STR_LIT>' in argv : <EOL> try : import coverage <EOL> except ImportError : <EOL> print >> stderr , "<STR_LIT>" <EOL> argv . remove ( '<STR_LIT>' ) <EOL> else : <EOL> NOSE_ARGS += COVERAGE_EXTRA_ARGS <EOL> if True not in [ a . startswith ( '<STR_LIT>' ) or a . startswith ( '<STR_LIT>' ) for a in argv ] : <EOL> argv . append ( '<STR_LIT>' + '<STR_LIT:U+002C>' . join ( DEFAULT_ATTRS ) ) <EOL> if not [ a for a in argv [ <NUM_LIT:1> : ] if not a . startswith ( '<STR_LIT:->' ) ] : <EOL> argv += DEFAULT_DIRS <EOL> finalArgs = argv + NOSE_ARGS <EOL> print "<STR_LIT>" , "<STR_LIT:U+0020>" . join ( finalArgs [ <NUM_LIT:1> : ] ) <EOL> nose . run_exit ( argv = finalArgs ) </s>
