Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
test.test_concurrent_futures.ThreadPoolMixin Class Reference
Inheritance diagram for test.test_concurrent_futures.ThreadPoolMixin:
Inheritance graph
Collaboration diagram for test.test_concurrent_futures.ThreadPoolMixin:
Collaboration graph

List of all members.

Public Member Functions

def setUp
def tearDown

Public Attributes


Static Public Attributes

 executor_type = futures.ThreadPoolExecutor
int worker_count = 5

Detailed Description

Definition at line 83 of file

Member Function Documentation

Definition at line 58 of file

00059     def setUp(self):
00060         self.t1 = time.time()
00061         try:
00062             self.executor = self.executor_type(max_workers=self.worker_count)
00063         except NotImplementedError as e:
00064             self.skipTest(str(e))
00065         self._prime_executor()

Here is the caller graph for this function:

Definition at line 66 of file

00067     def tearDown(self):
00068         self.executor.shutdown(wait=True)
00069         dt = time.time() - self.t1
00070         if
00071             print("%.2fs" % dt, end=' ')
00072         self.assertLess(dt, 60, "synchronization issue: test lasted too long")

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 61 of file

test.test_concurrent_futures.ThreadPoolMixin.executor_type = futures.ThreadPoolExecutor [static]

Definition at line 84 of file

Definition at line 59 of file

Definition at line 56 of file

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