mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
8551dd6078
commit
3661908a6a
70 changed files with 436 additions and 412 deletions
|
@ -1,6 +1,6 @@
|
|||
import os
|
||||
|
||||
from test_support import TESTFN
|
||||
from test_support import verify, TESTFN
|
||||
from UserList import UserList
|
||||
|
||||
# verify writelines with instance sequence
|
||||
|
@ -11,7 +11,7 @@ f.close()
|
|||
f = open(TESTFN, 'rb')
|
||||
buf = f.read()
|
||||
f.close()
|
||||
assert buf == '12'
|
||||
verify(buf == '12')
|
||||
|
||||
# verify writelines with integers
|
||||
f = open(TESTFN, 'wb')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue