mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
#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.
This commit is contained in:
parent
3ab7b0aabb
commit
11bfd32881
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue