summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-27 10:24:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-27 10:24:14 (GMT)
commit19b011109d0f177fcf4ef65587ec36ebe1325e69 (patch)
tree2647d63b082dbb73359ad2dbad39616fd5a779c0 /Lib
parentddb1d82fe607122a81dd3421f519226843f84f3f (diff)
parentc4cca45baf89f694ac86ee950a742c0a56e8dc7f (diff)
downloadcpython-19b011109d0f177fcf4ef65587ec36ebe1325e69.zip
cpython-19b011109d0f177fcf4ef65587ec36ebe1325e69.tar.gz
cpython-19b011109d0f177fcf4ef65587ec36ebe1325e69.tar.bz2
(Merge 3.4) asyncio: Oops, restore a removed test
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py3
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
index b19d7cc..8fd3e28 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')