#NEWLINE# def check_gil_held( self , func ) : #NEWLINE# #INDENT# arr = self . run_in_threads ( func , n_threads = 4 ) #NEWLINE# distinct = set ( arr ) #NEWLINE# self . assertEqual ( len ( self ) , 1 , distinct )