mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix for bug #626172: crash using unicode latin1 single char
Python 2.2.3 candidate.
This commit is contained in:
parent
45186c4ce0
commit
9cd87aaa54
2 changed files with 7 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue