Message141524
Could you add a comment above the lines defining self._BytesIO, describing why they're being set? Someone else might see them as unnecessary and rip them out if there's no explanation.
Can a test launch Python in a subprocess, set up the appropriate data structure, let the subprocess Python shutdown, then check the subprocess's stderr for the error?
It's a little convoluted, but perhaps it could be built into a general utility function that could be used to test __del__ methods in other modules, too.
Not sure that it's worth the effort though. |
|
Date |
User |
Action |
Args |
2011-08-01 16:20:32 | stutzbach | set | recipients:
+ stutzbach, daniel.urban, Peter.Davies, petri.lehtinen |
2011-08-01 16:20:32 | stutzbach | set | messageid: <1312215632.31.0.219048667568.issue11640@psf.upfronthosting.co.za> |
2011-08-01 16:20:31 | stutzbach | link | issue11640 messages |
2011-08-01 16:20:31 | stutzbach | create | |
|