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

Skip to content

Commit 798b4df

Browse files
committed
test_unicode was forgetting to run the common string tests for str.find()
2 parents 760531a + c0bbe7d commit 798b4df

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
@@ -170,6 +170,7 @@ def test_count(self):
170170
self.checkequalnofix(0, 'aaa', 'count', 'a', 0, -10)
171171

172172
def test_find(self):
173+
string_tests.CommonTest.test_find(self)
173174
self.checkequalnofix(0, 'abcdefghiabc', 'find', 'abc')
174175
self.checkequalnofix(9, 'abcdefghiabc', 'find', 'abc', 1)
175176
self.checkequalnofix(-1, 'abcdefghiabc', 'find', 'def', 4)

0 commit comments

Comments
 (0)