Glenn Langford added the comment: > Actually, I think what you're seeing here is the context manager being garbage collected
Yes indeed, I am with you now. Thanks for identifying the problem, and for your explanation. The future should not be yielded while locked. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20516> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com