This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients glangford, gvanrossum, mark.dickinson, tim.peters, vstinner
Date 2014-01-24.14:28:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390573734.3.0.250519296499.issue20367@psf.upfronthosting.co.za>
In-reply-to
Content
> Proposed patch for as_completed().

Could you please try to write a unit test. The unit test should fail without the patch, and fail with the patch. Then create a new patch including the patch.

If it's tricky to write a reliable test reproducing the race condition, you can use unittest.mock to mock some objects.
History
Date User Action Args
2014-01-24 14:28:54vstinnersetrecipients: + vstinner, gvanrossum, tim.peters, mark.dickinson, glangford
2014-01-24 14:28:54vstinnersetmessageid: <1390573734.3.0.250519296499.issue20367@psf.upfronthosting.co.za>
2014-01-24 14:28:54vstinnerlinkissue20367 messages
2014-01-24 14:28:54vstinnercreate