[New-bugs-announce] [issue37015] Fix asyncio mock wranings
Andrew Svetlov
report at bugs.python.org
Wed May 22 13:56:03 EDT 2019
New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:
After merging https://github.com/python/cpython/pull/9296 asyncio test suite prints a lot of warnings like
Exception ignored in: <coroutine object AsyncMockMixin._mock_call at 0x7fb648a1c170>
Traceback (most recent call last):
File "/home/andrew/projects/cpython/Lib/warnings.py", line 510, in _warn_unawaited_coroutine
warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
RuntimeWarning: coroutine 'AsyncMockMixin._mock_call' was never awaited
I believe this is not a sign of AsyncMock problem but asyncio tests should be fixed.
Need more investigations though.
----------
components: Tests
messages: 343223
nosy: asvetlov
priority: normal
severity: normal
status: open
title: Fix asyncio mock wranings
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37015>
_______________________________________
More information about the New-bugs-announce
mailing list