[Python-checkins] cpython (3.3): #18584: s/testcleanup/testsetup/ until we switch to Sphinx 1.1.

r.david.murray python-checkins at python.org
Tue Jul 30 20:43:27 CEST 2013


http://hg.python.org/cpython/rev/7b86be4e822c
changeset:   84914:7b86be4e822c
branch:      3.3
parent:      84912:79377c0efa4c
user:        R David Murray <rdmurray at bitdance.com>
date:        Tue Jul 30 14:42:40 2013 -0400
summary:
  #18584: s/testcleanup/testsetup/ until we switch to Sphinx 1.1.

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.

files:
  Doc/library/email.iterators.rst |  2 +-
  Doc/library/email.policy.rst    |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/email.iterators.rst b/Doc/library/email.iterators.rst
--- a/Doc/library/email.iterators.rst
+++ b/Doc/library/email.iterators.rst
@@ -68,7 +68,7 @@
                   text/plain
           text/plain
 
-   .. testcleanup::
+   .. testsetup::
 
       >>> somefile.close()
 
diff --git a/Doc/library/email.policy.rst b/Doc/library/email.policy.rst
--- a/Doc/library/email.policy.rst
+++ b/Doc/library/email.policy.rst
@@ -85,7 +85,7 @@
    >>> p.stdin.close()
    >>> rc = p.wait()
 
-.. testcleanup::
+.. testsetup::
 
    >>> mymsg.close()
    >>> mocker.stop()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list