[Python-Dev] Usage of "assert" in regression tests
Wed, 17 Jan 2001 22:04:29 +0100
I've just checked in a patch which removes all uses of the
assert statement in the regression tests. This makes the
tests compatible with the -O mode of Python and also allows
centralizing error reporting (many tests already provide their
own little test function for this purpose).
I urge you to only check in tests which use the new API
verify() to verify a certain condition. The API is defined
in the regression tools module test_support.
Python Pages: http://www.lemburg.com/python/