2 Aug
2013
2 Aug
'13
4:19 p.m.
Le Fri, 2 Aug 2013 18:13:13 +0300,
Michael Foord
On 2 Aug 2013, at 14:51, Matt McClure
wrote: It seems unittest.TestSuite holds references to unittest.TestCase instances after the test runs, until the test suite finishes. In a large suite, where the TestCase instances consume memory during execution, that can lead to exhausting all available memory and the OS killing the test process.
Well individual tests not releasing resources could be seen as a bug in those tests.
That aside, there's an open bug for this with some discussion and a proposed fix:
http://bugs.python.org/issue11798
The agreed on approach just needs doing.
The patch is basically ready for commit, except for a possible doc addition, no? Regards Antoine.