On Tue, Oct 5, 2010 at 3:54 AM, Robert Collins <[email protected]> wrote: > On Tue, Oct 5, 2010 at 9:27 PM, Robert Collins > <[email protected]> wrote: >> Ok, so it turns out that there are two distinct behaviours for layer >> teardown in zope.testrunner. >> >> In one mode, it stops at the first exception. >> In the other, it continues (see runner.py line 633). >> >> Changing the layer order won't work: >> >> def order_by_bases(layers): >> """Order the layers from least to most specific (bottom to top) >> """ >> named_layers = [(name_from_layer(layer), layer) for layer in layers] >> named_layers.sort() >> >> ^ the layer name acts as a tie when two layers are at the same level >> in the graph. >> >> That seems like a goal to make things 'stable' even though it removes >> control; the right thing to do is to make all the layers teardownable, >> however making the code tolerant of both optional and nonoptional mode >> for teardowns is needed. >> >> Patch coming up. > > patch is in lp:~lifeless/launchpad/test, and I've tossed it straight into pqm. > > -Rob
This patch eliminated the exception, however, I am still getting this warning: /usr/lib/python2.6/atexit.py:24: DeprecationWarning: Attempt to tearDown inactive fixture. func(*targs, **kargs) -Edwin _______________________________________________ Mailing list: https://launchpad.net/~launchpad-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-dev More help : https://help.launchpad.net/ListHelp

