a bold attempt to fix things broken by MAL's verify patch: import

'verify' iff it's used by a test module...
This commit is contained in:
Fredrik Lundh 2001-01-17 21:51:36 +00:00
parent f27cc5bc74
commit f785042433
48 changed files with 54 additions and 51 deletions

View file

@ -3,8 +3,9 @@
from UserList import UserList
from test_support import TestFailed
# Use check instead of verify(so -O doesn't render the)
# Use check instead of assert so -O doesn't render the
# test useless.
# XXX: could use the verify function in test_support instead
def check(predicate, msg):
if not predicate:
raise TestFailed(msg + " failed")