[Python-checkins] cpython (3.4): asyncio: Oops, restore a removed test
victor.stinner
python-checkins at python.org
Fri Jun 27 12:25:27 CEST 2014
http://hg.python.org/cpython/rev/1cd4210c050b
changeset: 91440:1cd4210c050b
branch: 3.4
parent: 91438:d130a04fa6a1
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Jun 27 12:23:41 2014 +0200
summary:
asyncio: Oops, restore a removed test
files:
Lib/test/test_asyncio/test_tasks.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1529,6 +1529,9 @@
def test_corowrapper_weakref(self):
wd = weakref.WeakValueDictionary()
def foo(): yield from []
+ cw = asyncio.tasks.CoroWrapper(foo(), foo)
+ wd['cw'] = cw # Would fail without __weakref__ slot.
+ cw.gen = None # Suppress warning from __del__.
@unittest.skipUnless(PY34,
'need python 3.4 or later')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list