[BUG] python -O bzr selftest fails
Robert Collins
robertc at robertcollins.net
Sat Oct 29 22:47:21 BST 2005
On Sat, 2005-10-29 at 13:17 -0500, John A Meinel wrote:
> https://launchpad.net/products/bzr/+bug/3685
>
> In summary, because python -O turns off assert statements, not all
> commands are run in the test suite. There are several lines with "assert
> <something>" where <something> has a side effect.
>
> All lines with side-effects should use self.assert_ or self.failUnless.
> I would recommend all lines should use these anyway, since it is a test
> suite, where you want assertions to be checked.
Please do not use self.assert_, rather one of the semantic asserts such
as self.assertEqual, wherever possible.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051029/cd7f2153/attachment.pgp
More information about the bazaar
mailing list