[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

Serhiy Storchaka report at bugs.python.org
Mon Feb 27 03:11:06 EST 2017


Serhiy Storchaka added the comment:

test.support.swap_attr() provides the functionality similar to mock. check_no_resource_warning() can be backported to 2.7.

But if there are problems with testing in 2.7 you can backport without tests.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29110>
_______________________________________


More information about the Python-bugs-list mailing list