[MERGE][1.2?][Bug #137823] Don't blindly raise UnavailableFeature during test setup

Vincent Ladeuil v.ladeuil+lp at free.fr
Sun Feb 10 22:49:30 GMT 2008


>>>>> "john" == John Arbash Meinel <john at arbash-meinel.com> writes:

    john> Vincent Ladeuil wrote:
    >> Hi,
    >> 
    >> This bug was nasty, see details on https://bugs.edge.launchpad.net/bzr/+bug/137823
    >> 
    >> The risk of broking anything is sufficiently low that this may be
    >> included in 1.2 if time permits.
    >> 
    >> Also note that this was caused by an unusual way to check the
    >> availability of the feature, it needed to be done in
    >> transport.ftp.get_test_permutations() with no access to the test
    >> itself (hence no access to neither _test_needs_features nor
    >> requireFeature()).
    >> 
    >> Vincent

    john> Why not change it so that raising an exception during
    john> setUp still calls tearDown?

You mean change the way a test is run ?

Because:

1) unittest.TestCase.run don't do it, and I'll wait to have some
   more years of TDD experience before going against such a
   decision ;-)

2) It was easier that way :)

3) I wanted to address that bug only.

   Vincent



More information about the bazaar mailing list