bpo-29110: Fix file object leak in `aifc.open`. by Uberi · Pull Request #162 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please wrap at 79 columns
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be 77 characters over here. Is there something I'm missing?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, I'm sorry. no problem.
def test_close_opened_files_on_error(self):
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test tests only Aifc_read. Needed a test for Aifc_write.
Is it possible to make tests common for aifc, sunau and wave?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#293 adds test for Aifc_write.
Since this type of test is depending on implementation (raise Exception on Edge case),
I didn't tried to make this generic.
def test_params_added(self): f = self.f = aifc.open(TESTFN, 'wb') f.aiff() Expand Down