diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-01-17 19:11:13 +0000 |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-01-17 19:11:13 +0000 |
commit | 3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e (patch) | |
tree | eea0f44df59aaaf014eb4580f1fad308e31601bf /Lib/test/test_file.py | |
parent | 8551dd60781f738e5e5ef4e22b6f071d27e20b50 (diff) | |
download | cpython-git-3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_file.py')
-rw-r--r-- | Lib/test/test_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py index d73167ad43..a85e07cacf 100644 --- a/Lib/test/test_file.py +++ b/Lib/test/test_file.py @@ -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') |