|
From: T.J.Hunt <T.J...@op...> - 2009-01-07 08:46:52
|
Apologies for just dumping this on the mailing list, rather than discovering the best way to submit patches to this project, but I have just spend a grim couple of hours fighting this bug, and I just want to get it out of the way and move on. OK, so the problem we hit was that we were relying on the destructor of our test class being called immediately after a test was run, before the next one was constructed. I know, that is probably stupid, but still. And the problem we had was that SimpleTestContext was keeping a reference to the last test run, even after it had finished running. The attached patch cleans it up. Not sure if you want it in the official simpletest distro, but I offer it anyway. We are using Simpletest 1.0.1. I am happy to discuss this further if you like. Thank you for making simpletest available. Tim. --------------------------------- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). |