[BUG] python -O bzr selftest fails
Aaron Bentley
aaron.bentley at utoronto.ca
Mon Oct 31 19:59:40 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robey Pointer wrote:
> Well I think the idea is that in running code out in the wild, you'd
> rather drop the strict checking and keep the server running as much as
> possible -- the asserts are only for debugging.
AIUI, asserts are for making statements that can never be false in a
bug-free system-- they're an integrity test, not for input checking.
> But since that's how that kind of assertion works, it seems pointless
> to rail against the fact that it's useless for unit tests. ;)
You can see how their purpose (as I see it) dovetails nicely with testing.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDZner0F+nu1YWqI0RAoP8AKCIwfmDXEJmGi5dPSLVPb6IBh4S5gCdEqlM
AHOOXpP8BNCtNVzH1BPmGZs=
=0ECw
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list