Lines Matching refs:globs

395 ``globs=your_dict`` to :func:`testmod` or :func:`testfile` instead.
841 .. function:: testfile(filename, module_relative=True, name=None, package=None, globs=None, verbose…
872 Optional argument *globs* gives a dict to be used as the globals when executing
878 execute examples. This works like :meth:`dict.update`: if *globs* and
911 .. function:: testmod(m=None, name=None, globs=None, verbose=None, report=True, optionflags=0, extr…
940 *raise_on_error*, and *globs* are the same as for function :func:`testfile`
941 above, except that *globs* defaults to ``m.__dict__``.
944 .. function:: run_docstring_examples(f, globs, verbose=False, name="NoName", compileflags=None, opt…
949 A shallow copy of dictionary argument *globs* is used for the execution context.
959 flags are deduced corresponding to the set of future features found in *globs*.
987 …te(*paths, module_relative=True, package=None, setUp=None, tearDown=None, globs=None, optionflags=…
1027 test globals as the *globs* attribute of the test passed.
1032 access the test globals as the *globs* attribute of the test passed.
1034 Optional argument *globs* is a dictionary containing the initial global
1036 test. By default, *globs* is a new empty dictionary.
1054 .. function:: DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None, setUp=None, …
1068 Optional argument *globs* is a dictionary containing the initial global
1070 test. By default, *globs* is a new empty dictionary.
1073 is merged into *globs*. By default, no extra globals are used.
1188 .. class:: DocTest(examples, globs, name, filename, lineno, docstring)
1204 .. attribute:: globs
1208 examples (such as binding new variables) will be reflected in :attr:`globs`
1329 .. method:: find(obj[, name][, module][, globs][, extraglobs])
1342 * As a default namespace, if *globs* is not specified.
1358 The globals for each :class:`DocTest` is formed by combining *globs* and
1359 *extraglobs* (bindings in *extraglobs* override bindings in *globs*). A new
1361 If *globs* is not specified, then it defaults to the module's *__dict__*, if
1381 .. method:: get_doctest(string, globs, name, filename, lineno)
1386 *globs*, *name*, *filename*, and *lineno* are attributes for the new
1499 The examples are run in the namespace ``test.globs``. If *clear_globs* is
1506 the set of future-import flags that apply to *globs*.
1698 .. function:: debug_src(src, pm=False, globs=None)
1707 Optional argument *globs* gives a dictionary to use as both local and global