summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-09-03 13:30:55 (GMT)
committerGitHub <noreply@github.com>2017-09-03 13:30:55 (GMT)
commit5cbca0235b8da07c9454bcaa94f12d59c2df0ad2 (patch)
tree7f7e03797a77c46c4e32355317c33250bb77531c /Lib/test
parent98bbeb78e06d5756491705920e72f9721850c727 (diff)
downloadcpython-5cbca0235b8da07c9454bcaa94f12d59c2df0ad2.zip
cpython-5cbca0235b8da07c9454bcaa94f12d59c2df0ad2.tar.gz
cpython-5cbca0235b8da07c9454bcaa94f12d59c2df0ad2.tar.bz2
[3.6] Fix a c.f.as_completed() refleak previously introduced in bpo-27144 (GH-3270) (#3271)
(cherry picked from commit 2ef3760)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_concurrent_futures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
index 73baf9a..9b61cc0 100644
--- a/Lib/test/test_concurrent_futures.py
+++ b/Lib/test/test_concurrent_futures.py
@@ -406,7 +406,7 @@ class AsCompletedTests:
# to finished futures.
futures_list = [Future() for _ in range(8)]
futures_list.append(create_future(state=CANCELLED_AND_NOTIFIED))
- futures_list.append(create_future(state=SUCCESSFUL_FUTURE))
+ futures_list.append(create_future(state=FINISHED, result=42))
with self.assertRaises(futures.TimeoutError):
for future in futures.as_completed(futures_list, timeout=0):