Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_zipimport_support Namespace Reference

Classes

class  ZipSupportTests

Functions

def _run_object_doctest
def test_main

Variables

 verbose = test.support.verbose

Function Documentation

def test.test_zipimport_support._run_object_doctest (   obj,
  module 
) [private]

Definition at line 35 of file test_zipimport_support.py.

00035 
00036 def _run_object_doctest(obj, module):
00037     finder = doctest.DocTestFinder(verbose=verbose, recurse=False)
00038     runner = doctest.DocTestRunner(verbose=verbose)
00039     # Use the object's fully qualified name if it has one
00040     # Otherwise, use the module's name
00041     try:
00042         name = "%s.%s" % (obj.__module__, obj.__name__)
00043     except AttributeError:
00044         name = module.__name__
00045     for example in finder.find(obj, name, module):
00046         runner.run(example)
00047     f, t = runner.failures, runner.tries
00048     if f:
00049         raise test.support.TestFailed("%d of %d doctests failed" % (f, t))
00050     if verbose:
00051         print ('doctest (%s) ... %d tests with zero failures' % (module.__name__, t))
00052     return f, t
00053 
00054 

Here is the caller graph for this function:

Definition at line 229 of file test_zipimport_support.py.

00229 
00230 def test_main():
00231     test.support.run_unittest(ZipSupportTests)
00232     test.support.reap_children()

Here is the call graph for this function:


Variable Documentation

Definition at line 20 of file test_zipimport_support.py.