Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
test.lock_tests.BaseTestCase Class Reference
Inheritance diagram for test.lock_tests.BaseTestCase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown
def assertTimeout

Private Attributes

 _threads

Detailed Description

Definition at line 57 of file lock_tests.py.


Member Function Documentation

def test.lock_tests.BaseTestCase.assertTimeout (   self,
  actual,
  expected 
)

Definition at line 65 of file lock_tests.py.

00065 
00066     def assertTimeout(self, actual, expected):
00067         # The waiting and/or time.time() can be imprecise, which
00068         # is why comparing to the expected value would sometimes fail
00069         # (especially under Windows).
00070         self.assertGreaterEqual(actual, expected * 0.6)
00071         # Test nothing insane happened
00072         self.assertLess(actual, expected * 10.0)
00073 

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in test.lock_tests.BarrierTests.

Definition at line 58 of file lock_tests.py.

00058 
00059     def setUp(self):
00060         self._threads = support.threading_setup()

Here is the caller graph for this function:

Reimplemented in test.lock_tests.BarrierTests.

Definition at line 61 of file lock_tests.py.

00061 
00062     def tearDown(self):
00063         support.threading_cleanup(*self._threads)
00064         support.reap_children()

Here is the caller graph for this function:


Member Data Documentation

Definition at line 59 of file lock_tests.py.


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