Lines Matching refs:globs

183 def _extract_future_flags(globs):  argument
190 feature = globs.get(fname, None)
528 def __init__(self, examples, globs, name, filename, lineno, docstring): argument
537 self.globs = globs.copy()
559 self.globs == other.globs and \
666 def get_doctest(self, string, globs, name, filename, lineno): argument
675 return DocTest(self.get_examples(string, name), globs,
845 def find(self, obj, name=None, module=None, globs=None, extraglobs=None): argument
925 if globs is None:
927 globs = {}
929 globs = module.__dict__.copy()
931 globs = globs.copy()
933 globs.update(extraglobs)
934 if '__name__' not in globs:
935 globs['__name__'] = '__main__' # provide a default module name
939 self._find(tests, obj, name, module, source_lines, globs, {})
975 def _find(self, tests, obj, name, module, source_lines, globs, seen): argument
989 test = self._get_test(obj, name, module, globs, source_lines)
1002 globs, seen)
1019 globs, seen)
1036 globs, seen)
1038 def _get_test(self, obj, name, module, globs, source_lines): argument
1073 return self._parser.get_doctest(docstring, globs, name,
1337 compileflags, True), test.globs)
1448 compileflags = _extract_future_flags(test.globs)
1491 test.globs.clear()
1846 test.globs.clear()
1864 def testmod(m=None, name=None, globs=None, verbose=None, argument
1955 for test in finder.find(m, name, globs=globs, extraglobs=extraglobs):
1969 globs=None, verbose=None, report=True, optionflags=0, argument
2063 if globs is None:
2064 globs = {}
2066 globs = globs.copy()
2068 globs.update(extraglobs)
2069 if '__name__' not in globs:
2070 globs['__name__'] = '__main__'
2078 test = parser.get_doctest(text, globs, name, filename, 0)
2091 def run_docstring_examples(f, globs, verbose=False, name="NoName", argument
2111 for test in finder.find(f, name, globs=globs):
2180 test.globs.clear()
2339 def DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None, argument
2380 tests = test_finder.find(module, globs=globs, extraglobs=extraglobs)
2417 globs=None, parser=DocTestParser(), argument
2419 if globs is None:
2420 globs = {}
2422 globs = globs.copy()
2432 if "__file__" not in globs:
2433 globs["__file__"] = path
2439 test = parser.get_doctest(doc, globs, name, path, 0)
2613 def debug_src(src, pm=False, globs=None): argument
2616 debug_script(testsrc, pm, globs)
2618 def debug_script(src, pm=False, globs=None): argument
2622 if globs:
2623 globs = globs.copy()
2625 globs = {}
2629 exec(src, globs, globs)
2636 pdb.Pdb(nosigint=True).run("exec(%r)" % src, globs, globs)