From: Victor Stinner Date: Fri, 27 Jun 2014 10:23:41 +0000 (+0200) Subject: asyncio: Oops, restore a removed test X-Git-Tag: v3.4.2rc1~302 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4cca45baf89f694ac86ee950a742c0a56e8dc7f;p=thirdparty%2FPython%2Fcpython.git asyncio: Oops, restore a removed test --- diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index b19d7ccc672a..8fd3e28f1c6a 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')