You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.refleak/build/Lib/test/test_asyncio/test_streams.py", line 1237, in test_stream_writer_create_warning
asyncio.StreamWriter
AssertionError: DeprecationWarning not triggered
The problem is that when the test is repeated using the -R, asyncio has cached already StreamReader and StreamWriter into globals, not triggering the warning again.
New changeset 4cdbc45 by Pablo Galindo in branch 'master': bpo-37148: Fix asyncio test that check for warning when running the test suite with huntleaks (GH-13800) 4cdbc45
Activity
pablogsal commentedon Jun 4, 2019
https://buildbot.python.org/all/#/builders/1/builds/609/steps/5/logs/stdio
=====================================================================
FAIL: test_stream_reader_create_warning (test.test_asyncio.test_streams.StreamTests)
----------------------------------------------------------------------
======================================================================
FAIL: test_stream_writer_create_warning (test.test_asyncio.test_streams.StreamTests)
----------------------------------------------------------------------
The problem is that when the test is repeated using the -R, asyncio has cached already StreamReader and StreamWriter into globals, not triggering the warning again.
asvetlov commentedon Jun 4, 2019
I'm curious if collections.__getattr__ suffers from the same problem?
asyncio uses basically the same technique for deprecating global names on import.
pablogsal commentedon Jun 4, 2019
Very likely, the problem is that there is no test in test_collections for the deprecation warning, so this situation never happens.
pablogsal commentedon Jun 4, 2019
New changeset 4cdbc45 by Pablo Galindo in branch 'master':
bpo-37148: Fix asyncio test that check for warning when running the test suite with huntleaks (GH-13800)
4cdbc45