30 Jul
2010
30 Jul
'10
7:16 a.m.
Hi! Marius Gedminas wrote:
And if I use the -t option (-ttest_tool), most tests fail :(
That is an indication that the tests aren't independent. I would consider such a test suite to be broken.
Well. In this case the tests are independent from each other, but not from the way tests are filtered: The -m filter is applied *before* test modules are imported. The -t filter is applied *after* importing all available test modules. Some nasty code in Zope 2 behaves differently if different modules are imported before running the tests. Cheers, Yuppie