New submission from Robert Collins <robe...@robertcollins.net>: Original mail: JML's testtools has a TestResult subclass with a done() method. The reason for this method is to allow doing things after the last test has run. While a result can infer 'first test' it can't infer 'last test' without ugliness like __del__.
Some uses for this are: - reporting summary data - closing external resources like log files, sockets to remote machines etc - <your idea here> This can be added quite safely I think - check for the attribute, and if present call it. done() could be spelt differently - I don't think anyone would care. testsFinished() finished() etc. ---------- components: Library (Lib) messages: 85812 nosy: michael.foord, olemis, rbcollins severity: normal status: open title: Support telling TestResult objects a test run has finished versions: Python 2.7, Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5728> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com