]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#18584: s/testcleanup/testsetup/ until we switch to Sphinx 1.1.
authorR David Murray <rdmurray@bitdance.com>
Tue, 30 Jul 2013 18:42:40 +0000 (14:42 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 30 Jul 2013 18:42:40 +0000 (14:42 -0400)
testcleanup directive is new as of 1.1, and we are currently running
1.0.7.  But using testsetup works just as well, and avoids the
unknown directive error when building the docs.

Doc/library/email.iterators.rst
Doc/library/email.policy.rst

index 6c7200f98af4362476ddd974d8247d514cea0bdf..7882718695a8a9a3a8deb49d1c9aa704ef46ced4 100644 (file)
@@ -68,7 +68,7 @@ The following function has been added as a useful debugging tool.  It should
                   text/plain
           text/plain
 
-   .. testcleanup::
+   .. testsetup::
 
       >>> somefile.close()
 
index d85054ac833996ade480b9054a4f780c95531196..54ebb1cf11189ab1fdd003e285360e8e87f961fc 100644 (file)
@@ -85,7 +85,7 @@ file on disk and pass it to the system ``sendmail`` program on a Unix system:
    >>> p.stdin.close()
    >>> rc = p.wait()
 
-.. testcleanup::
+.. testsetup::
 
    >>> mymsg.close()
    >>> mocker.stop()