From 11bfd32881e9d57072d3ffee253f5c34535d5042 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Tue, 30 Jul 2013 14:42:40 -0400 Subject: [PATCH] #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. --- 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 index 6c7200f98af..7882718695a 100644 --- a/Doc/library/email.iterators.rst +++ b/Doc/library/email.iterators.rst @@ -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() diff --git a/Doc/library/email.policy.rst b/Doc/library/email.policy.rst index d85054ac833..54ebb1cf111 100644 --- a/Doc/library/email.policy.rst +++ b/Doc/library/email.policy.rst @@ -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()