[BUG] python -O bzr selftest fails
Aaron Bentley
aaron.bentley at utoronto.ca
Mon Oct 31 13:53:37 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robey Pointer wrote:
> It's really two different meanings for assert, as you pointed out
> yourself later in the thread. :) One is for validating inputs and
> assumptions, the other for unit testing. I definitely agree that unit
> tests shouldn't be using raw 'assert'.
They're no good for input validation, since they can be disabled. Since
I was advocating using them for unit testing, you're not helping :-)
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDZiHh0F+nu1YWqI0RAvMWAJ9t8ERqUnE4ki4TMXj/KQG2qcTIcACfT6Qa
8FwUMdeX6sixKPqXcKC0gR0=
=oTSY
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list