New submission from Serhiy Storchaka <>:

$ ./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 
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/", line 511, in 
    warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
RuntimeWarning: coroutine 
'OriginTrackingTest.test_origin_tracking_warning.<locals>.corofn' was never 
test test_coroutines failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/", line 2167, in 
    msg = check(0, f"coroutine '{corofn.__qualname__}' was never awaited")
  File "/home/serhiy/py/cpython/Lib/test/", line 2161, in 
    self.assertTrue(len(wlist) == 1)
AssertionError: False is not true

test_coroutines failed

1 test failed:

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 <>
Python-bugs-list mailing list

Reply via email to