diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-13 14:34:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 14:34:10 (GMT) |
commit | f514addfbc637a42549ddc422b35b6caad2a4363 (patch) | |
tree | 64f9850c87eb048997ffb8b96b5230e7b7869514 /Doc/library/bz2.rst | |
parent | 4a0f1df9527f7d67064d33f5366476b3c93dc86c (diff) | |
download | cpython-f514addfbc637a42549ddc422b35b6caad2a4363.zip cpython-f514addfbc637a42549ddc422b35b6caad2a4363.tar.gz cpython-f514addfbc637a42549ddc422b35b6caad2a4363.tar.bz2 |
bpo-44514: Add doctest testcleanup for configparser and bz2 (GH-26909) (GH-27112)
Add testcleanup section to configparser and bz2 documentation which
removes temporary files created in the filesystem when 'make doctest'
is run.
(cherry picked from commit 48a5aa7f128caf5a46e4326c1fd285cd5fc8e59d)
Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
Diffstat (limited to 'Doc/library/bz2.rst')
-rw-r--r-- | Doc/library/bz2.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/bz2.rst b/Doc/library/bz2.rst index f6787ab..999892e 100644 --- a/Doc/library/bz2.rst +++ b/Doc/library/bz2.rst @@ -325,3 +325,8 @@ Writing and reading a bzip2-compressed file in binary mode: ... content = f.read() >>> content == data # Check equality to original object after round-trip True + +.. testcleanup:: + + import os + os.remove("myfile.bz2") |