Back to index

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

List of all members.

Public Member Functions

def test_import
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 1835 of file test_multiprocessing.py.


Member Function Documentation

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

Definition at line 124 of file test_multiprocessing.py.

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

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

Definition at line 114 of file test_multiprocessing.py.

00114 
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,
  a,
  b 
) [inherited]

Definition at line 110 of file test_multiprocessing.py.

00110 
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 1839 of file test_multiprocessing.py.

01839 
01840     def test_import(self):
01841         modules = [
01842             'multiprocessing', 'multiprocessing.connection',
01843             'multiprocessing.heap', 'multiprocessing.managers',
01844             'multiprocessing.pool', 'multiprocessing.process',
01845             'multiprocessing.reduction',
01846             'multiprocessing.synchronize', 'multiprocessing.util'
01847             ]
01848 
01849         if c_int is not None:
01850             # This module requires _ctypes
01851             modules.append('multiprocessing.sharedctypes')
01852 
01853         for name in modules:
01854             __import__(name)
01855             mod = sys.modules[name]
01856 
01857             for attr in getattr(mod, '__all__', ()):
01858                 self.assertTrue(
01859                     hasattr(mod, attr),
01860                     '%r does not have attribute %r' % (mod, attr)
01861                     )
01862 
01863 #
01864 # Quick test that logging works -- does not test logging output
01865 #

Here is the call graph for this function:


Member Data Documentation

Reimplemented from test.test_multiprocessing.BaseTestCase.

Definition at line 1837 of file test_multiprocessing.py.

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: