File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ Bugfixes
5858
5959- Fix initialization of the context on background threads. (#91)
6060
61- - Fix unit tests that changed the context and didn't reset their changes. (#92)
61+ - Fix unit tests that changed the context and didn't reset their changes.
62+ (#92, #98)
6263
6364Build
6465-----
Original file line number Diff line number Diff line change 2121 BigFloat ,
2222 double_precision ,
2323 RoundTiesToEven ,
24+ getcontext ,
2425 setcontext ,
2526)
2627
3031
3132class TestFormatting (unittest .TestCase ):
3233 def setUp (self ):
34+ self ._original_context = getcontext ()
3335 setcontext (DefaultTestContext )
3436
37+ def tearDown (self ):
38+ setcontext (self ._original_context )
39+ del self ._original_context
40+
3541 def test_format (self ):
3642 # Fixed precision formatting.
3743 test_triples = [
You can’t perform that action at this time.
0 commit comments