New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

$ ./python -We -m test test_coroutines
Run tests sequentially
0:00:00 load avg: 0.29 [1/1] test_coroutines
Exception ignored in: <coroutine object 
OriginTrackingTest.test_origin_tracking_warning.<locals>.corofn at 
0x7fc5fc692cb8>
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/warnings.py", line 511, in 
_warn_unawaited_coroutine
    warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
RuntimeWarning: coroutine 
'OriginTrackingTest.test_origin_tracking_warning.<locals>.corofn' was never 
awaited
test test_coroutines failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_coroutines.py", line 2167, in 
test_origin_tracking_warning
    msg = check(0, f"coroutine '{corofn.__qualname__}' was never awaited")
  File "/home/serhiy/py/cpython/Lib/test/test_coroutines.py", line 2161, in 
check
    self.assertTrue(len(wlist) == 1)
AssertionError: False is not true

test_coroutines failed

1 test failed:
    test_coroutines

Total duration: 371 ms
Tests result: FAILURE

This isn't release blocker, because the test is failed, not crashed, and seems 
this is just a test issue.

----------
components: Tests
messages: 311354
nosy: serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: test_coroutines is failed when run with -We
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32733>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to