From: Marco Buttu Date: Thu, 13 Apr 2017 11:30:25 +0000 (+0200) Subject: bpo-30055: add testcleanup to leave a fresh context (#1094) X-Git-Tag: v3.7.0a1~977 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0;p=python bpo-30055: add testcleanup to leave a fresh context (#1094) --- diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index e984edcb75..f2a677e693 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