@skip('win32')
def test_new_thread_is_background():
 import thread
 global done
 done = None
 def f():
  global done
  done = Thread.CurrentThread.IsBackground
 thread.start_new_thread(f, ())
 while (done == None):
  Thread.Sleep(100)
 Assert(done)

@ skip ( 'win32' ) def test_new_thread_is_background ( ) : import thread global done done = None def f ( ) : global done done = Thread . CurrentThread . IsBackground thread . start_new_thread ( f , ( ) ) while ( done == None ) : Thread . Sleep ( 100 ) Assert ( done )
verify new threads created during python are background threads .