MCPcopy Create free account
hub / github.com/python/cpython / test_with_statements_gc1

Method test_with_statements_gc1

Lib/test/test_decimal.py:3811–3821  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3809 self.assertFalse(new_ctx.flags[Overflow])
3810
3811 def test_with_statements_gc1(self):
3812 localcontext = self.decimal.localcontext
3813
3814 with localcontext() as c1:
3815 del c1
3816 with localcontext() as c2:
3817 del c2
3818 with localcontext() as c3:
3819 del c3
3820 with localcontext() as c4:
3821 del c4
3822
3823 def test_with_statements_gc2(self):
3824 localcontext = self.decimal.localcontext

Callers

nothing calls this directly

Calls 1

localcontextFunction · 0.85

Tested by

no test coverage detected