diff options
| author | Zachary Ware <zachary.ware@gmail.com> | 2016-08-10 00:39:41 -0500 |
|---|---|---|
| committer | Zachary Ware <zachary.ware@gmail.com> | 2016-08-10 00:39:41 -0500 |
| commit | 640b1ca50779cd40427a4ebfe8ea56f58a0d935d (patch) | |
| tree | ac6900567e4dcf40030bc5b5a9b0159c94b8c383 /Doc/library/email.iterators.rst | |
| parent | c90fccdff6f5e72f1e4ff09ba1ba7697f70b0f4b (diff) | |
| download | cpython-git-640b1ca50779cd40427a4ebfe8ea56f58a0d935d.tar.gz | |
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.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/email.iterators.rst b/Doc/library/email.iterators.rst index f3e9e184a5..d53ab33b89 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. |
