bpo-30055: add testcleanup to leave a fresh context (#1094)

This commit is contained in:
Marco Buttu 2017-04-13 13:30:25 +02:00 committed by Stefan Krah
parent 2c134c3125
commit 2c0b5c664b

View file

@ -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