(self)
| 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 | |
| 1676 | def setUpModule(): |
nothing calls this directly
no test coverage detected