• Home
  • Raw
  • Download

Lines Matching refs:globs

397 ``globs=your_dict`` to :func:`testmod` or :func:`testfile` instead.
839 .. function:: testfile(filename, module_relative=True, name=None, package=None, globs=None, verbose…
870 Optional argument *globs* gives a dict to be used as the globals when executing
876 execute examples. This works like :meth:`dict.update`: if *globs* and
909 .. function:: testmod(m=None, name=None, globs=None, verbose=None, report=True, optionflags=0, extr…
938 *raise_on_error*, and *globs* are the same as for function :func:`testfile`
939 above, except that *globs* defaults to ``m.__dict__``.
942 .. function:: run_docstring_examples(f, globs, verbose=False, name="NoName", compileflags=None, opt…
947 A shallow copy of dictionary argument *globs* is used for the execution context.
957 flags are deduced corresponding to the set of future features found in *globs*.
985 …te(*paths, module_relative=True, package=None, setUp=None, tearDown=None, globs=None, optionflags=…
1025 test globals as the *globs* attribute of the test passed.
1030 access the test globals as the *globs* attribute of the test passed.
1032 Optional argument *globs* is a dictionary containing the initial global
1034 test. By default, *globs* is a new empty dictionary.
1052 .. function:: DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None, setUp=None, …
1066 Optional argument *globs* is a dictionary containing the initial global
1068 test. By default, *globs* is a new empty dictionary.
1071 is merged into *globs*. By default, no extra globals are used.
1186 .. class:: DocTest(examples, globs, name, filename, lineno, docstring)
1202 .. attribute:: globs
1206 examples (such as binding new variables) will be reflected in :attr:`globs`
1327 .. method:: find(obj[, name][, module][, globs][, extraglobs])
1340 * As a default namespace, if *globs* is not specified.
1356 The globals for each :class:`DocTest` is formed by combining *globs* and
1357 *extraglobs* (bindings in *extraglobs* override bindings in *globs*). A new
1359 If *globs* is not specified, then it defaults to the module's *__dict__*, if
1379 .. method:: get_doctest(string, globs, name, filename, lineno)
1384 *globs*, *name*, *filename*, and *lineno* are attributes for the new
1497 The examples are run in the namespace ``test.globs``. If *clear_globs* is
1504 the set of future-import flags that apply to *globs*.
1696 .. function:: debug_src(src, pm=False, globs=None)
1705 Optional argument *globs* gives a dictionary to use as both local and global