[MERGE] Adding sanity checks when using selftest --load-list
Aaron Bentley
aaron at aaronbentley.com
Wed Mar 26 23:24:22 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vincent Ladeuil wrote:
> Thanks to loom, it's far easier to isolate stand-alone patches.
>
> Here is one that add some sanity checks to ensure that tests
> don't have duplicate IDs and that a list doesn't refer to
> unknown tests (yes, some tests are deleted sometime).
bb:tweak
> === modified file 'bzrlib/tests/__init__.py'
> --- bzrlib/tests/__init__.py 2008-03-16 10:45:53 +0000
> +++ bzrlib/tests/__init__.py 2008-03-24 19:11:04 +0000
> @@ -2573,6 +2573,40 @@
> ftest.close()
> return test_list
>
> +def suite_matches_id_list(test_suite, id_list):
> + """Warns about tests not appearing or appearing more than once.
PEP8 wants two blank lines between suite_matches_id_list and whatever
precedes it.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH6tsl0F+nu1YWqI0RAmL+AJwJTclkVWfhZjwROkCrDAoSjUD3mgCfaVJg
uvkzgACmzUS6qvewYKsHeqg=
=HIxP
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list