Martin Panter added the comment: Wouldn’t it be better to fix the underlying problem with the test cases? As I understand it, that would also avoid the warnings :)
Also, you can often use self.addCleanup(s.close), which saves a level of indentation (and associated noise in the annotate history). I used this technique in my remaining patch for Issue 25940. ---------- nosy: +martin.panter _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26612> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com