[Python-checkins] cpython (merge 3.4 -> default): (Merge 3.4) asyncio: Oops, restore a removed test

victor.stinner python-checkins at python.org
Fri Jun 27 12:25:28 CEST 2014


http://hg.python.org/cpython/rev/4be3ee53c62c
changeset:   91441:4be3ee53c62c
parent:      91439:3124790c07b4
parent:      91440:1cd4210c050b
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Jun 27 12:24:14 2014 +0200
summary:
  (Merge 3.4) 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