Lines Matching refs:globs
410 ``globs=your_dict`` to :func:`testmod` or :func:`testfile` instead.
846 .. function:: testfile(filename[, module_relative][, name][, package][, globs][, verbose][, report]…
877 Optional argument *globs* gives a dict to be used as the globals when executing
883 execute examples. This works like :meth:`dict.update`: if *globs* and
920 .. function:: testmod([m][, name][, globs][, verbose][, report][, optionflags][, extraglobs][, rais…
949 *raise_on_error*, and *globs* are the same as for function :func:`testfile`
950 above, except that *globs* defaults to ``m.__dict__``.
962 .. function:: run_docstring_examples(f, globs[, verbose][, name][, compileflags][, optionflags])
967 A shallow copy of dictionary argument *globs* is used for the execution context.
977 flags are deduced corresponding to the set of future features found in *globs*.
1011 .. function:: DocFileSuite(*paths, [module_relative][, package][, setUp][, tearDown][, globs][, opt…
1051 test globals as the *globs* attribute of the test passed.
1056 access the test globals as the *globs* attribute of the test passed.
1058 Optional argument *globs* is a dictionary containing the initial global
1060 test. By default, *globs* is a new empty dictionary.
1094 .. function:: DocTestSuite([module][, globs][, extraglobs][, test_finder][, setUp][, tearDown][, ch…
1108 Optional argument *globs* is a dictionary containing the initial global
1110 test. By default, *globs* is a new empty dictionary.
1113 is merged into *globs*. By default, no extra globals are used.
1124 The parameters *globs*, *extraglobs*, *test_finder*, *setUp*, *tearDown*, and
1230 .. class:: DocTest(examples, globs, name, filename, lineno, docstring)
1247 .. attribute:: globs
1251 examples (such as binding new variables) will be reflected in :attr:`globs`
1375 .. method:: find(obj[, name][, module][, globs][, extraglobs])
1388 * As a default namespace, if *globs* is not specified.
1404 The globals for each :class:`DocTest` is formed by combining *globs* and
1405 *extraglobs* (bindings in *extraglobs* override bindings in *globs*). A new
1407 If *globs* is not specified, then it defaults to the module's *__dict__*, if
1428 .. method:: get_doctest(string, globs, name, filename, lineno)
1433 *globs*, *name*, *filename*, and *lineno* are attributes for the new
1547 The examples are run in the namespace ``test.globs``. If *clear_globs* is
1554 the set of future-import flags that apply to *globs*.
1763 .. function:: debug_src(src[, pm][, globs])
1772 Optional argument *globs* gives a dictionary to use as both local and global