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