def test_sanity_from_thread():
 global TIMER_HELPER_FINISHED
 TIMER_HELPER_FINISHED = False
 start_new_thread(test_sanity, tuple())
 print 'Waiting for test_sanity to finish',
 while (not TIMER_HELPER_FINISHED):
  print '.',
  sleep(0.1)

def test_sanity_from_thread ( ) : global TIMER_HELPER_FINISHED TIMER_HELPER_FINISHED = False start_new_thread ( test_sanity , tuple ( ) ) print 'Waiting for test_sanity to finish' , while ( not TIMER_HELPER_FINISHED ) : print '.' , sleep ( 0.1 )
simply runs test_sanity from a thread .