summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMarco Buttu <marco.buttu@gmail.com>2017-04-13 11:30:25 (GMT)
committerStefan Krah <skrah@bytereef.org>2017-04-13 11:30:25 (GMT)
commit2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0 (patch)
treeff68bc75f5d3410f2d4a14de2b18ebac22861451 /Doc
parent2c134c31252612ed4729fd05df6ab0e96de8d0b1 (diff)
downloadcpython-2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0.zip
cpython-2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0.tar.gz
cpython-2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0.tar.bz2
bpo-30055: add testcleanup to leave a fresh context (#1094)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/decimal.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index e984edc..f2a677e 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -23,6 +23,11 @@
# make sure each group gets a fresh context
setcontext(Context())
+.. testcleanup:: *
+
+ # make sure other tests (outside this file) get a fresh context
+ setcontext(Context())
+
--------------
The :mod:`decimal` module provides support for fast correctly-rounded