diff options
| author | Georg Brandl <georg@python.org> | 2009-01-22 19:23:23 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-01-22 19:23:23 +0100 |
| commit | 388277ae83ef94de163905144138d9ca6fe0dc7c (patch) | |
| tree | d2f80659cdf358e02acf33c040df461d84ff3e74 /doc/ext/doctest.rst | |
| parent | 41199791234037ce6bf2f9d4afa7248df5b118c7 (diff) | |
| parent | a7bb180ba708ffef173d0741a56ea41b8de1de06 (diff) | |
| download | sphinx-388277ae83ef94de163905144138d9ca6fe0dc7c.tar.gz | |
merge with 0.5
Diffstat (limited to 'doc/ext/doctest.rst')
| -rw-r--r-- | doc/ext/doctest.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/ext/doctest.rst b/doc/ext/doctest.rst index 9de6ba9e..7117f6a9 100644 --- a/doc/ext/doctest.rst +++ b/doc/ext/doctest.rst @@ -149,6 +149,14 @@ There are also these config values for customizing the doctest extension: A list of directories that will be added to :data:`sys.path` when the doctest builder is used. (Make sure it contains absolute paths.) +.. confval:: doctest_global_setup + + Python code that is treated like it were put in a ``testsetup`` directive for + *every* file that is tested, and for every group. You can use this to + e.g. import modules you will always need in your doctests. + + .. versionadded:: 0.6 + .. confval:: doctest_test_doctest_blocks If this is a nonempty string (the default is ``'default'``), standard reST |
