[BUG] python -O bzr selftest fails

John A Meinel john at arbash-meinel.com
Sat Oct 29 19:17:32 BST 2005


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.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051029/64a9837b/attachment.pgp 


More information about the bazaar mailing list