New submission from STINNER Victor <vstin...@redhat.com>:
vstinner@apu$ PYTHONWARNINGS=error ./python -Werror -m test -v test_asyncio -m test_debug_mode_interop == CPython 3.9.0a0 (heads/master-dirty:00f6493084, Jun 17 2019, 21:50:32) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] == Linux-5.1.6-300.fc30.x86_64-x86_64-with-glibc2.29 little-endian == cwd: /home/vstinner/prog/python/master/build/test_python_23510 == CPU count: 8 == encodings: locale=UTF-8, FS=utf-8 Run tests sequentially 0:00:00 load avg: 0.73 [1/1] test_asyncio test_debug_mode_interop (test.test_asyncio.test_tasks.CompatibilityTests) ... FAIL ====================================================================== FAIL: test_debug_mode_interop (test.test_asyncio.test_tasks.CompatibilityTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vstinner/prog/python/master/Lib/test/test_asyncio/test_tasks.py", line 3355, in test_debug_mode_interop assert_python_ok("-c", code, PYTHONASYNCIODEBUG="1") File "/home/vstinner/prog/python/master/Lib/test/support/script_helper.py", line 157, in assert_python_ok return _assert_python(True, *args, **env_vars) File "/home/vstinner/prog/python/master/Lib/test/support/script_helper.py", line 143, in _assert_python res.fail(cmd_line) File "/home/vstinner/prog/python/master/Lib/test/support/script_helper.py", line 70, in fail raise AssertionError("Process return code is %d\n" AssertionError: Process return code is 1 command line: ['/home/vstinner/prog/python/master/python', '-X', 'faulthandler', '-c', '\nimport asyncio\n\nasync def native_coro():\n pass\n\n@asyncio.coroutine\ndef old_style_coro():\n yield from native_coro()\n\nasyncio.run(old_style_coro())\n'] stdout: --- --- stderr: --- Traceback (most recent call last): File "<string>", line 8, in <module> File "/home/vstinner/prog/python/master/Lib/asyncio/coroutines.py", line 111, in coroutine warnings.warn('"@coroutine" decorator is deprecated since Python 3.8, use "async def" instead', DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead --- ---------------------------------------------------------------------- Ran 1 test in 0.210s FAILED (failures=1) test test_asyncio failed test_asyncio failed == Tests result: FAILURE == 1 test failed: test_asyncio Total duration: 598 ms Tests result: FAILURE ---------- components: Tests messages: 345904 nosy: vstinner priority: normal severity: normal status: open title: test_asyncio: test_debug_mode_interop() fails using -Werror versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37323> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com