Steve Dower added the comment: It is a direct duplicate of multiple issues.
The assertion is coming from the CRT, because their definition of "undefined behaviour" includes displaying an assert dialog in debug mode, and last time we tried disabling them completely we upset people. (I'm not 100% clear how you get from "closing an already-closed fd" to "undefined behaviour", but I assume it's an interpretation of invalid parameters.) I'll get the patch for issue 23919 together, based on what Zach described in issue 25001. ---------- resolution: -> duplicate status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25305> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com