• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(57)  |  Call(24)  |  Derive(23)  |  Import(10)
A class used to extract the DocTests that are relevant to a given
object, from its docstring and the docstrings of its contained
objects.  Doctests can currently be extracted from the following
object types: modules, functions, classes, methods, staticmethods,
classmethods, and properties.

src/i/p/ipython-py3k-HEAD/IPython/testing/ipunittest.py   ipython-py3k(Download)
import re
import sys
import unittest
from doctest import DocTestFinder, DocTestRunner
try:
    from doctest import TestResults
except:
        """
        self.verbose = verbose
        # We can reuse the same finder for all instances
        self.finder = DocTestFinder(verbose=verbose, recurse=False)
 
    def __call__(self, func):
        """Use as a decorator: doctest a function's docstring as a unittest.

src/n/u/nutmeg-py-HEAD/nutmeg/external/decotest.py   nutmeg-py(Download)
import unittest
 
from compiler.consts import CO_GENERATOR
from doctest import DocTestFinder, DocTestRunner
 
#-----------------------------------------------------------------------------
# nose monkeypatch, remove later
        """
        self.verbose = verbose
        # We can reuse the same finder for all instances
        self.finder = DocTestFinder(verbose=verbose, recurse=False)
 
    def __call__(self, func):
        """Use as a decorator: doctest a function's docstring as a unittest.

src/x/i/xipy-HEAD/xipy/external/decotest.py   xipy(Download)
import unittest
 
from compiler.consts import CO_GENERATOR
from doctest import DocTestFinder, DocTestRunner
 
#-----------------------------------------------------------------------------
# nose monkeypatch, remove later
        """
        self.verbose = verbose
        # We can reuse the same finder for all instances
        self.finder = DocTestFinder(verbose=verbose, recurse=False)
 
    def __call__(self, func):
        """Use as a decorator: doctest a function's docstring as a unittest.

src/s/i/simplegrate-HEAD/sympy/sympy/utilities/runtests.py   simplegrate(Download)
from timeit import default_timer as clock
import doctest as pdoctest # avoid clashing with our doctest() function
from sympy.utilities import any
from doctest import DocTestFinder
import re as pre
 
def sys_normcase(f):
class SymPyDocTestFinder(DocTestFinder):
    """
    A class used to extract the DocTests that are relevant to a given
    object, from its docstring and the docstrings of its contained
    objects.  Doctests can currently be extracted from the following
    object types: modules, functions, classes, methods, staticmethods,
    classmethods, and properties.

src/s/y/sympy-tensor-HEAD/sympy/utilities/runtests.py   sympy-tensor(Download)
from timeit import default_timer as clock
import doctest as pdoctest # avoid clashing with our doctest() function
from sympy.utilities import any
from doctest import DocTestFinder
import re as pre
 
def sys_normcase(f):
class SymPyDocTestFinder(DocTestFinder):
    """
    A class used to extract the DocTests that are relevant to a given
    object, from its docstring and the docstrings of its contained
    objects.  Doctests can currently be extracted from the following
    object types: modules, functions, classes, methods, staticmethods,
    classmethods, and properties.

src/s/y/sympy-HEAD/sympy/utilities/runtests.py   sympy(Download)
from timeit import default_timer as clock
import doctest as pdoctest # avoid clashing with our doctest() function
from sympy.utilities import any
from doctest import DocTestFinder
import re as pre
 
def sys_normcase(f):
class SymPyDocTestFinder(DocTestFinder):
    """
    A class used to extract the DocTests that are relevant to a given
    object, from its docstring and the docstrings of its contained
    objects.  Doctests can currently be extracted from the following
    object types: modules, functions, classes, methods, staticmethods,
    classmethods, and properties.

src/p/y/pylibmc-HEAD/tests.py   pylibmc(Download)
def make_full_suite():
    from doctest import DocTestFinder, DocTestSuite
    suite = unittest.TestSuite()
    loader = unittest.TestLoader()
    finder = DocTestFinder()
    for modname in (__name__, "pylibmc", "_pylibmc"):
        ss = (DocTestSuite(sys.modules[modname], test_finder=finder),

src/s/y/sympy-old-HEAD/sympy/utilities/runtests.py   sympy-old(Download)
from timeit import default_timer as clock
import doctest as pdoctest # avoid clashing with our doctest() function
from sympy.utilities import any
from doctest import DocTestFinder
import re as pre
 
def sys_normcase(f):
class SymPyDocTestFinder(DocTestFinder):
    """
    A class used to extract the DocTests that are relevant to a given
    object, from its docstring and the docstrings of its contained
    objects.  Doctests can currently be extracted from the following
    object types: modules, functions, classes, methods, staticmethods,
    classmethods, and properties.

src/s/y/sympy-0.6.6/sympy/utilities/runtests.py   sympy(Download)
from timeit import default_timer as clock
import doctest as pdoctest # avoid clashing with our doctest() function
from sympy.utilities import any
from doctest import DocTestFinder
import re as pre
 
def sys_normcase(f):
class SymPyDocTestFinder(DocTestFinder):
    """
    A class used to extract the DocTests that are relevant to a given
    object, from its docstring and the docstrings of its contained
    objects.  Doctests can currently be extracted from the following
    object types: modules, functions, classes, methods, staticmethods,
    classmethods, and properties.

src/p/y/pylibmc-1.1.1/tests.py   pylibmc(Download)
def make_full_suite():
    from doctest import DocTestFinder, DocTestSuite
    suite = unittest.TestSuite()
    loader = unittest.TestLoader()
    finder = DocTestFinder()
    for modname in (__name__, "pylibmc", "_pylibmc"):
        ss = (DocTestSuite(sys.modules[modname], test_finder=finder),