Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_thread Namespace Reference

Classes

class  BasicThreadTest
class  ThreadRunningTests
class  Barrier
class  BarrierTest
class  LockTests
class  TestForkInThread

Functions

def verbose_print
def test_main

Variables

tuple thread = support.import_module('_thread')
int NUMTASKS = 10
int NUMTRIPS = 3
tuple _print_mutex = thread.allocate_lock()

Function Documentation

Definition at line 236 of file test_thread.py.

00236 
00237 def test_main():
00238     support.run_unittest(ThreadRunningTests, BarrierTest, LockTests,
00239                          TestForkInThread)

Helper function for printing out debugging output.

Definition at line 17 of file test_thread.py.

00017 
00018 def verbose_print(arg):
00019     """Helper function for printing out debugging output."""
00020     if support.verbose:
00021         with _print_mutex:
00022             print(arg)

Here is the caller graph for this function:


Variable Documentation

tuple test.test_thread._print_mutex = thread.allocate_lock()

Definition at line 15 of file test_thread.py.

Definition at line 12 of file test_thread.py.

Definition at line 13 of file test_thread.py.

Definition at line 5 of file test_thread.py.