Commit 4b44c383 authored by R David Murray's avatar R David Murray

#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.
parent 44b7c3a4
...@@ -68,7 +68,7 @@ The following function has been added as a useful debugging tool. It should ...@@ -68,7 +68,7 @@ The following function has been added as a useful debugging tool. It should
text/plain text/plain
text/plain text/plain
.. testcleanup:: .. testsetup::
>>> somefile.close() >>> somefile.close()
......
...@@ -85,7 +85,7 @@ file on disk and pass it to the system ``sendmail`` program on a Unix system: ...@@ -85,7 +85,7 @@ file on disk and pass it to the system ``sendmail`` program on a Unix system:
>>> p.stdin.close() >>> p.stdin.close()
>>> rc = p.wait() >>> rc = p.wait()
.. testcleanup:: .. testsetup::
>>> mymsg.close() >>> mymsg.close()
>>> mocker.stop() >>> mocker.stop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment