From c4cca45baf89f694ac86ee950a742c0a56e8dc7f Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 27 Jun 2014 12:23:41 +0200 Subject: [PATCH] asyncio: Oops, restore a removed test --- Lib/test/test_asyncio/test_tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index b19d7ccc672..8fd3e28f1c6 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -1529,6 +1529,9 @@ class TaskTests(test_utils.TestCase): 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')