Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3015a6 commit 291151bCopy full SHA for 291151b
1 file changed
Lib/test/test_concurrent_futures.py
@@ -125,6 +125,8 @@ def close(self):
125
if sys.platform.startswith('win'):
126
ctypes.windll.kernel32.CloseHandle(self._called_event)
127
ctypes.windll.kernel32.CloseHandle(self._can_finish)
128
+ self._called_event = None
129
+ self._can_finish = None
130
else:
131
del self.CALL_LOCKS[self._called_event]
132
del self.CALL_LOCKS[self._can_finish]
@@ -375,8 +377,6 @@ def wait_test():
375
377
376
378
self.assertEqual(set([future1, future2]), finished)
379
self.assertEqual(set(), pending)
-
380
finally:
381
call1.close()
382
call2.close()
0 commit comments