%errorlevel%in windows, this is the application return code, usually this is the argument assigned to the call exit(int)(exit code). These return codes are the same as unittest, but the documentation is not very explicit:
testRunner , . sys.exit() , .
, exit False:
, exit = False. sys.exit()
( 2.7 3.1. sys.exit.)
, , , , 0 , 1 ( unittest alone) 2, ( ). , , 0.