mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-30055: add testcleanup to leave a fresh context (#1094)
This commit is contained in:
parent
2c134c3125
commit
2c0b5c664b
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue