]> granicus.if.org Git - python/commitdiff
bpo-30055: add testcleanup to leave a fresh context (#1094)
authorMarco Buttu <marco.buttu@gmail.com>
Thu, 13 Apr 2017 11:30:25 +0000 (13:30 +0200)
committerStefan Krah <skrah@bytereef.org>
Thu, 13 Apr 2017 11:30:25 +0000 (13:30 +0200)
Doc/library/decimal.rst

index e984edcb75421b60c1114eccb8e1d54a1e8cd8fc..f2a677e6936302e588774781dd28096c077cb892 100644 (file)
    # 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