bzrlib.tests.blackbox.test_init.TestSFTPInit fails when run alone
Andrew Bennetts
andrew at canonical.com
Fri Jul 20 07:11:39 BST 2007
Robert Collins wrote:
> On Wed, 2007-07-18 at 21:18 +1000, Andrew Bennetts wrote:
> > When running just the blackbox tests I see the following failure:
> >
[...]
>
> This turns up with plugins as well, and was one of the sources of
> complaints that prompted the strict policy some plugins adopted for
> version-checking against bzr.
>
> I propose:
> selftest runs have warnings enabled (and -Werror for pqm).
> bzr command line invocations have warnings/deprecations disabled by
> default.
>
> This test will still break, but it will not affect users.
If we want the tests to fail in this situation, then they should fail reliably,
rather than accidentally pass in a full run as they do now (unless you use
-Werror). The blackbox test cases should tweak the warnings module
appropriately to make sure that deprecation warnings are always emitted.
Perhaps this is what you meant?
Also, if I'm a developer with an older version of paramiko and Python 2.5, I
think those failures would be a nuisance rather than useful. Perhaps we need a
flag to selftest to relax the warnings checks, in addition to being strict by
default?
-Andrew.
More information about the bazaar
mailing list