#NEWLINE# def run_tests( self ) : #NEWLINE# #INDENT# auto_reload = False #NEWLINE# if ( ( '-a' in sys . argv ) or ( '--autoreload' in sys . argv ) ) : #NEWLINE# #INDENT# auto_reload = True #NEWLINE# #UNINDENT# if auto_reload : #NEWLINE# #INDENT# from django.utils.autoreload import restart_with_reloader , reloader_thread #NEWLINE# if ( os . environ . get ( 'RUN_MAIN' ) == 'true' ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# TestCommand . run_tests ( self ) #NEWLINE# #UNINDENT# except LabelException : #NEWLINE# #INDENT# sys . exit ( 1 ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# reloader_thread ( ) #NEWLINE# #UNINDENT# except KeyboardInterrupt : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# sys . exit ( restart_with_reloader ( ) ) #NEWLINE# #UNINDENT# except KeyboardInterrupt : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return TestCommand . run_tests ( self )