diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-01-17 19:11:13 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-01-17 19:11:13 (GMT) |
commit | 3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e (patch) | |
tree | eea0f44df59aaaf014eb4580f1fad308e31601bf /Lib/test/test_pkg.py | |
parent | 8551dd60781f738e5e5ef4e22b6f071d27e20b50 (diff) | |
download | cpython-3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e.zip cpython-3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e.tar.gz cpython-3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e.tar.bz2 |
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_pkg.py')
-rw-r--r-- | Lib/test/test_pkg.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_pkg.py b/Lib/test/test_pkg.py index 5456100..80a11d8 100644 --- a/Lib/test/test_pkg.py +++ b/Lib/test/test_pkg.py @@ -3,7 +3,7 @@ import sys, os, string, tempfile, traceback from os import mkdir, rmdir # Can't test if these fail del mkdir, rmdir -from test_support import verbose, TestFailed +from test_support import verify, verbose, TestFailed # Helpers to create and destroy hierarchies. @@ -188,16 +188,16 @@ print dir() t7, sub, subsub = None, None, None import t7 as tas print dir(tas) -assert not t7 +verify(not t7) from t7 import sub as subpar print dir(subpar) -assert not t7 and not sub +verify(not t7 and not sub) from t7.sub import subsub as subsubsub print dir(subsubsub) -assert not t7 and not sub and not subsub +verify(not t7 and not sub and not subsub) from t7.sub.subsub import spam as ham print "t7.sub.subsub.spam =", ham -assert not t7 and not sub and not subsub +verify(not t7 and not sub and not subsub) """), ] |