#NEWLINE# def print_results( self ) : #NEWLINE# #INDENT# pr_num = self . pr_num #NEWLINE# branch = self . pr [ 'head' ] [ 'ref' ] #NEWLINE# branch_url = ( ( self . pr [ 'head' ] [ 'repo' ] [ 'html_url' ] + '/tree/' ) + branch ) #NEWLINE# owner = self . pr [ 'head' ] [ 'repo' ] [ 'owner' ] [ 'login' ] #NEWLINE# mergeable = self . pr [ 'mergeable' ] #NEWLINE# master_sha = self . master_sha #NEWLINE# branch_sha = self . pr [ 'head' ] [ 'sha' ] [ : 7 ] #NEWLINE# print ( '\n' ) #NEWLINE# print ( ( '**NetworkX: Test results for pull request %s ' % pr_num ) , ( "(%s '%s' branch at %s)**" % ( owner , branch , branch_url ) ) ) #NEWLINE# if mergeable : #NEWLINE# #INDENT# mrg = 'OK: This pull request can be merged cleanly ' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# mrg = 'FAIL: This pull request **cannot** be merged cleanly ' #NEWLINE# #UNINDENT# mrg += ( '(commit %s into NetworkX master %s)' % ( branch_sha , master_sha ) ) #NEWLINE# print ( mrg ) #NEWLINE# print ( 'Platform:' , sys . platform ) #NEWLINE# for result in self . results : #NEWLINE# #INDENT# if result . passed : #NEWLINE# #INDENT# print ( result . py , ':' , ( 'OK (SKIP=%s) Ran %s tests' % ( result . skipped , result . num_tests ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( result . py , ':' , 'Failed' ) #NEWLINE# print ( '    Test log:' , ( result . get ( 'log_url' ) or result . log_file ) ) #NEWLINE# #UNINDENT# if result . missing_libraries : #NEWLINE# #INDENT# print ( '    Libraries not available:' , result . missing_libraries ) #NEWLINE# #UNINDENT# #UNINDENT# if self . unavailable_pythons : #NEWLINE# #INDENT# print ( 'Not available for testing:' , ', ' . join ( self . unavailable_pythons ) )