From 4d83b98db574a569cdb5eb4684ffc7b61984c2dd Mon Sep 17 00:00:00 2001 From: Marco Buttu Date: Wed, 12 Apr 2017 17:03:40 +0200 Subject: [PATCH] bpo-30055: add testcleanup to leave a fresh context --- Doc/library/decimal.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index e984edcb75421b..f2a677e6936302 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