summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2002-10-23 09:02:46 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2002-10-23 09:02:46 (GMT)
commit9cd87aaa54c2bfd3a2654cdd4e793f1e39389cac (patch)
tree2d3328d652dcdd8fc213f9bf846455dc7105bd79 /Lib/test/test_unicode.py
parent45186c4ce08093d5f0d2f141f6e557e9726aedb4 (diff)
downloadcpython-9cd87aaa54c2bfd3a2654cdd4e793f1e39389cac.zip
cpython-9cd87aaa54c2bfd3a2654cdd4e793f1e39389cac.tar.gz
cpython-9cd87aaa54c2bfd3a2654cdd4e793f1e39389cac.tar.bz2
Fix for bug #626172: crash using unicode latin1 single char
Python 2.2.3 candidate.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 89e28b5..cd40a4b 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -434,6 +434,12 @@ vereq((u'ab' in 'abc'), True)
vereq((u'ab' in (1,None,u'ab')), True)
vereq((u'' in u'abc'), True)
vereq(('' in u'abc'), True)
+try:
+ u'\xe2' in 'g\xe2teau'
+except UnicodeError:
+ pass
+else:
+ print '*** contains operator does not propagate UnicodeErrors'
print 'done.'
# Formatting: