[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

STINNER Victor report at bugs.python.org
Mon Jun 17 16:50:02 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

def test_debug_mode_interop(self):
        # https://bugs.python.org/issue32636
        code = textwrap.dedent("""
            import asyncio

            async def native_coro():
                pass

            @asyncio.coroutine
            def old_style_coro():
                yield from native_coro()

            asyncio.run(old_style_coro())
        """)
        assert_python_ok("-c", code, PYTHONASYNCIODEBUG="1")

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37323>
_______________________________________


More information about the Python-bugs-list mailing list