Back to index

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

List of all members.

Public Member Functions

def test_subclassing
def assertTimingAlmostEqual
def assertReturnsIfImplemented
def __reduce__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

tuple ALLOWED_TYPES = ('processes',)

Detailed Description

Definition at line 324 of file

Member Function Documentation

def test.test_multiprocessing.BaseTestCase.__reduce__ (   self,
) [inherited]

Definition at line 124 of file

00125     def __reduce__(self, *args):
00126         raise NotImplementedError("shouldn't try to pickle a test case")

def test.test_multiprocessing.BaseTestCase.assertReturnsIfImplemented (   self,
) [inherited]

Definition at line 114 of file

00115     def assertReturnsIfImplemented(self, value, func, *args):
00116         try:
00117             res = func(*args)
00118         except NotImplementedError:
00119             pass
00120         else:
00121             return self.assertEqual(value, res)

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_multiprocessing.BaseTestCase.assertTimingAlmostEqual (   self,
) [inherited]

Definition at line 110 of file

00111     def assertTimingAlmostEqual(self, a, b):
00112         if CHECK_TIMINGS:
00113             self.assertAlmostEqual(a, b, 1)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 328 of file

00329     def test_subclassing(self):
00330         uppercaser = _UpperCaser()
00331         uppercaser.start()
00332         self.assertEqual(uppercaser.submit('hello'), 'HELLO')
00333         self.assertEqual(uppercaser.submit('world'), 'WORLD')
00334         uppercaser.stop()
00335         uppercaser.join()
00337 #
00338 #
00339 #

Here is the call graph for this function:

Member Data Documentation

Reimplemented from test.test_multiprocessing.BaseTestCase.

Definition at line 326 of file

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

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