#NEWLINE# def handle( self , * test_labels , **options ) : #NEWLINE# #INDENT# from django.conf import settings #NEWLINE# from django.test.utils import get_runner #NEWLINE# verbosity = int ( options . get ( 'verbosity' , 1 ) ) #NEWLINE# interactive = options . get ( 'interactive' , True ) #NEWLINE# failfast = options . get ( 'failfast' , False ) #NEWLINE# TestRunner = get_runner ( settings ) #NEWLINE# if hasattr ( TestRunner , 'func_name' ) : #NEWLINE# #INDENT# import warnings #NEWLINE# warnings . warn ( 'Function-based test runners are deprecated. Test runners should be classes with a run_tests() method.' , PendingDeprecationWarning ) #NEWLINE# failures = TestRunner ( test_labels , verbosity = verbosity , interactive = interactive ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# test_runner = TestRunner ( verbosity = verbosity , interactive = interactive , failfast = failfast ) #NEWLINE# failures = test_runner . run_tests ( test_labels ) #NEWLINE# #UNINDENT# if failures : #NEWLINE# #INDENT# sys . exit ( bool ( failures ) )