MCPcopy Index your code
hub / github.com/python/cpython / test_warnings_fini

Method test_warnings_fini

Lib/test/test_gc.py:1662–1673  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1660 assert_python_ok("-c", code)
1661
1662 def test_warnings_fini(self):
1663 # See https://github.com/python/cpython/issues/137384
1664 code = textwrap.dedent('''
1665 import asyncio
1666 from contextvars import ContextVar
1667
1668 context_loop = ContextVar("context_loop", default=None)
1669 loop = asyncio.new_event_loop()
1670 context_loop.set(loop)
1671 ''')
1672
1673 assert_python_ok("-c", code)
1674
1675
1676def setUpModule():

Callers

nothing calls this directly

Calls 2

assert_python_okFunction · 0.90
dedentMethod · 0.45

Tested by

no test coverage detected