R. David Murray <rdmur...@bitdance.com> added the comment: That should have been
self.addCleanup(MyContextManager.__exit__) You could alternatively call __exit__() explicitly in tearDown, of course, but I believe addCleanup is a more reliable cleanup than tearDown. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15351> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com