summaryrefslogtreecommitdiffstats
path: root/Doc/library/email.iterators.rst
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-08-10 05:39:41 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-08-10 05:39:41 (GMT)
commit640b1ca50779cd40427a4ebfe8ea56f58a0d935d (patch)
treeac6900567e4dcf40030bc5b5a9b0159c94b8c383 /Doc/library/email.iterators.rst
parentc90fccdff6f5e72f1e4ff09ba1ba7697f70b0f4b (diff)
downloadcpython-640b1ca50779cd40427a4ebfe8ea56f58a0d935d.zip
cpython-640b1ca50779cd40427a4ebfe8ea56f58a0d935d.tar.gz
cpython-640b1ca50779cd40427a4ebfe8ea56f58a0d935d.tar.bz2
Issue #27209: Fix doctests in Doc/library/email*.rst
Patch by Jelle Zijlstra.
Diffstat (limited to 'Doc/library/email.iterators.rst')
-rw-r--r--Doc/library/email.iterators.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/email.iterators.rst b/Doc/library/email.iterators.rst
index f3e9e18..d53ab33 100644
--- a/Doc/library/email.iterators.rst
+++ b/Doc/library/email.iterators.rst
@@ -50,9 +50,9 @@ The following function has been added as a useful debugging tool. It should
.. testsetup::
- >>> import email
- >>> from email.iterators import _structure
- >>> somefile = open('Lib/test/test_email/data/msg_02.txt')
+ import email
+ from email.iterators import _structure
+ somefile = open('../Lib/test/test_email/data/msg_02.txt')
.. doctest::
@@ -74,9 +74,9 @@ The following function has been added as a useful debugging tool. It should
text/plain
text/plain
- .. testsetup::
+ .. testcleanup::
- >>> somefile.close()
+ somefile.close()
Optional *fp* is a file-like object to print the output to. It must be
suitable for Python's :func:`print` function. *level* is used internally.