summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_concurrent_futures.py
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-09-03 13:09:23 (GMT)
committerGitHub <noreply@github.com>2017-09-03 13:09:23 (GMT)
commit2ef37607b7aacb7c750d008b9113fe11f96163c0 (patch)
tree2c11f68aff70632aebd4591392e2e4cf427c635c /Lib/test/test_concurrent_futures.py
parentbca4939d806170c3ca5d05f23710d11a8f1669cf (diff)
downloadcpython-2ef37607b7aacb7c750d008b9113fe11f96163c0.zip
cpython-2ef37607b7aacb7c750d008b9113fe11f96163c0.tar.gz
cpython-2ef37607b7aacb7c750d008b9113fe11f96163c0.tar.bz2
Fix a c.f.as_completed() refleak previously introduced in bpo-27144 (#3270)
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-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 f1226fe..03f8d1d 100644
--- a/Lib/test/test_concurrent_futures.py
+++ b/Lib/test/test_concurrent_futures.py
@@ -405,7 +405,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):