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_ucn.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_ucn.py')
-rw-r--r-- | Lib/test/test_ucn.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Lib/test/test_ucn.py b/Lib/test/test_ucn.py index f1a62299c8..92155be869 100644 --- a/Lib/test/test_ucn.py +++ b/Lib/test/test_ucn.py @@ -5,6 +5,8 @@ Written by Bill Tutt. (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" +from test_support import verify, verbose + print 'Testing General Unicode Character Name, and case insensitivity...', # General and case insensitivity test: @@ -34,15 +36,15 @@ s = u"\N{LATIN CAPITAL LETTER T}" \ u"\N{LATIN SMALL LETTER E}" \ u"\N{LATIN SMALL LETTER P}" \ u"\N{FULL STOP}" -assert s == u"The rEd fOx ate the sheep.", s +verify(s == u"The rEd fOx ate the sheep.", s) print "done." # misc. symbol testing print "Testing misc. symbols for unicode character name expansion....", -assert u"\N{PILCROW SIGN}" == u"\u00b6" -assert u"\N{REPLACEMENT CHARACTER}" == u"\uFFFD" -assert u"\N{HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK}" == u"\uFF9F" -assert u"\N{FULLWIDTH LATIN SMALL LETTER A}" == u"\uFF41" +verify(u"\N{PILCROW SIGN}" == u"\u00b6") +verify(u"\N{REPLACEMENT CHARACTER}" == u"\uFFFD") +verify(u"\N{HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK}" == u"\uFF9F") +verify(u"\N{FULLWIDTH LATIN SMALL LETTER A}" == u"\uFF41") print "done." |