This patch removes all uses of "assert" in the regression test suite

and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.

Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
This commit is contained in:
Marc-André Lemburg 2001-01-17 19:11:13 +00:00
parent 8551dd6078
commit 3661908a6a
70 changed files with 436 additions and 412 deletions

View file

@ -3,7 +3,7 @@
from UserList import UserList
from test_support import TestFailed
# Use check instead of assert so -O doesn't render the
# Use check instead of verify(so -O doesn't render the)
# test useless.
def check(predicate, msg):
if not predicate: