MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_warnings_fini

Method test_warnings_fini

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assert_python_okFunction · 0.90
dedentMethod · 0.80

Tested by

no test coverage detected