Skip to content

Commit 2c0b5c6

Browse files
marco-buttuStefan Krah
authored andcommitted
bpo-30055: add testcleanup to leave a fresh context (#1094)
1 parent 2c134c3 commit 2c0b5c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/decimal.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
# make sure each group gets a fresh context
2424
setcontext(Context())
2525

26+
.. testcleanup:: *
27+
28+
# make sure other tests (outside this file) get a fresh context
29+
setcontext(Context())
30+
2631
--------------
2732

2833
The :mod:`decimal` module provides support for fast correctly-rounded

0 commit comments

Comments
 (0)