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

All Samples(43)  |  Call(24)  |  Derive(11)  |  Import(8)
A class used to parse strings containing doctest examples.

src/z/a/zamboni-lib-HEAD/lib/python/IPython/dtutils.py   zamboni-lib(Download)
    else:
        runner = doctest.DocTestRunner()
 
    parser = doctest.DocTestParser()
    if ns is None:
        f = sys._getframe(1)
        ns = f.f_globals.copy()

src/i/p/ipython-py3k-HEAD/IPython/deathrow/dtutils.py   ipython-py3k(Download)
    else:
        runner = doctest.DocTestRunner()
 
    parser = doctest.DocTestParser()
    if ns is None:
        f = sys._getframe(1)
        ns = f.f_globals.copy()

src/i/p/ipython-0.10/IPython/dtutils.py   ipython(Download)
    else:
        runner = doctest.DocTestRunner()
 
    parser = doctest.DocTestParser()
    if ns is None:
        f = sys._getframe(1)
        ns = f.f_globals.copy()

src/f/i/findimports-1.2.10/findimports.py   findimports(Download)
    def processDocstring(self, docstring, lineno):
        if not docstring:
            return
        if lineno is None:
            # Module nodes have a lineno of None.
            lineno = 0
        dtparser = doctest.DocTestParser()

src/z/a/zamboni-lib-HEAD/lib/python/pyquery/test.py   zamboni-lib(Download)
    def __init__(self, *args, **kwargs):
        parser = doctest.DocTestParser()
        doc = open(self.path).read()
        test = parser.get_doctest(doc, globals(), '', self.path, 0)
        doctest.DocFileCase.__init__(self, test, optionflags=doctest.ELLIPSIS)
 
    def setUp(self):
    def __init__(self, *args, **kwargs):
        parser = doctest.DocTestParser()
        doc = open(self.path).read()
        test = parser.get_doctest(doc, globals(), '', self.path, 0)
        doctest.DocFileCase.__init__(self, test, optionflags=doctest.ELLIPSIS)
 
class TestSelector(unittest.TestCase):

src/z/a/zamboni-lib-HEAD/lib/python/IPython/testing/plugin/ipdoctest.py   zamboni-lib(Download)
class IPDocTestParser(doctest.DocTestParser):
    """
    A class used to parse strings containing doctest examples.
 
    Note: This is a version modified to properly recognize IPython input and
    convert any IPython examples into valid Python ones.
    """
    def configure(self, options, config):
        Plugin.configure(self, options, config)
        self.doctest_tests = options.doctest_tests
        self.extension = tolist(options.doctestExtension)
 
        self.parser = doctest.DocTestParser()
        self.finder = DocTestFinder()

src/n/u/numpy3k-HEAD/numpy/testing/noseclasses.py   numpy3k(Download)
    def configure(self, options, config):
        Plugin.configure(self, options, config)
        self.doctest_tests = True
        self.finder = NumpyDocTestFinder()
        self.parser = doctest.DocTestParser()
 
    # Turn on whitespace normalization, set a minimal execution context

src/i/p/ipython-py3k-HEAD/IPython/testing/plugin/ipdoctest.py   ipython-py3k(Download)
class IPDocTestParser(doctest.DocTestParser):
    """
    A class used to parse strings containing doctest examples.
 
    Note: This is a version modified to properly recognize IPython input and
    convert any IPython examples into valid Python ones.
    """
    def configure(self, options, config):
        Plugin.configure(self, options, config)
        self.doctest_tests = options.doctest_tests
        self.extension = tolist(options.doctestExtension)
 
        self.parser = doctest.DocTestParser()
        self.finder = DocTestFinder()

src/n/i/nipy-HEAD/nipype/trunk/nipype/testing/numpytesting/noseclasses.py   nipy(Download)
    def configure(self, options, config):
        Plugin.configure(self, options, config)
        self.doctest_tests = True
        self.finder = NumpyDocTestFinder()
        self.parser = doctest.DocTestParser()
 
    # Turn on whitespace normalization, set a minimal execution context

src/n/u/numpy-HEAD/numpy/testing/noseclasses.py   numpy(Download)
    def configure(self, options, config):
        Plugin.configure(self, options, config)
        self.doctest_tests = True
        self.finder = NumpyDocTestFinder()
        self.parser = doctest.DocTestParser()
 
    # Turn on whitespace normalization, set a minimal execution context

  1 | 2  Next