mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
f27cc5bc74
commit
f785042433
48 changed files with 54 additions and 51 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue