Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e067417

Browse files
committed
Added a test for PyUnicode_Contains() taking into account the width of
Py_UNICODE.
1 parent 6a043f3 commit e067417

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_unicode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ def test_fixup(s):
413413
vereq(('a' in (1,None,u'a')), True)
414414
vereq(('a' in ('x',1,u'y')), False)
415415
vereq(('a' in ('x',1,None)), False)
416+
vereq(u'abcd' in u'abcxxxx', False)
416417
print 'done.'
417418

418419
# Formatting:

0 commit comments

Comments
 (0)