Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
test.test_decimal.DecimalUseOfContextTest Class Reference

List of all members.

Public Member Functions

def test_threading

Public Attributes

 synchro
 finish1
 finish2

Static Public Attributes

 threading = None

Detailed Description

Unit tests for Use of Context cases in Decimal.

Definition at line 1216 of file test_decimal.py.


Member Function Documentation

Definition at line 1227 of file test_decimal.py.

01227 
01228     def test_threading(self):
01229         #Test the "threading isolation" of a Context.
01230 
01231         self.synchro = threading.Event()
01232         self.finish1 = threading.Event()
01233         self.finish2 = threading.Event()
01234 
01235         th1 = threading.Thread(target=thfunc1, args=(self,))
01236         th2 = threading.Thread(target=thfunc2, args=(self,))
01237 
01238         th1.start()
01239         th2.start()
01240 
01241         self.finish1.wait()
01242         self.finish2.wait()
01243         return


Member Data Documentation

Definition at line 1231 of file test_decimal.py.

Definition at line 1232 of file test_decimal.py.

Definition at line 1230 of file test_decimal.py.

Definition at line 1222 of file test_decimal.py.


The documentation for this class was generated from the following file: