23 return cygrpc._fork_state.active_thread_count._num_active_threads
26 @unittest.skipIf(os.name ==
'nt',
'Posix-specific tests')
31 cygrpc._GRPC_ENABLE_FORK_SUPPORT =
True
38 thread = cygrpc.ForkManagedThread(cb)
47 raise Exception(
"expected exception")
49 thread = cygrpc.ForkManagedThread(cb)
58 @unittest.skipUnless(os.name ==
'nt',
'Windows-specific tests')
66 thread = cygrpc.ForkManagedThread(cb)
71 if __name__ ==
'__main__':
72 unittest.main(verbosity=2)