Back to index

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

Classes

class  Weak
class  BaseLocalTest
class  ThreadLocalTest
class  PyThreadingLocalTest

Functions

def target
def test_main

Variables

tuple _thread = support.import_module('_thread')
tuple threading = support.import_module('threading')

Function Documentation

def test.test_threading_local.target (   local,
  weaklist 
)

Definition at line 16 of file test_threading_local.py.

00016 
00017 def target(local, weaklist):
00018     weak = Weak()
00019     local.weak = weak
00020     weaklist.append(weakref.ref(weak))
00021 

Definition at line 207 of file test_threading_local.py.

00207 
00208 def test_main():
00209     suite = unittest.TestSuite()
00210     suite.addTest(DocTestSuite('_threading_local'))
00211     suite.addTest(unittest.makeSuite(ThreadLocalTest))
00212     suite.addTest(unittest.makeSuite(PyThreadingLocalTest))
00213 
00214     local_orig = _threading_local.local
00215     def setUp(test):
00216         _threading_local.local = _thread._local
00217     def tearDown(test):
00218         _threading_local.local = local_orig
00219     suite.addTest(DocTestSuite('_threading_local',
00220                                setUp=setUp, tearDown=tearDown)
00221                   )
00222 
00223     support.run_unittest(suite)

Here is the call graph for this function:


Variable Documentation

Definition at line 8 of file test_threading_local.py.

Definition at line 9 of file test_threading_local.py.