@@ -262,6 +262,9 @@ def test_rfind(self):
262262 # issue 7458
263263 self .checkequal (- 1 , 'ab' , 'rfind' , 'xxx' , sys .maxsize + 1 , 0 )
264264
265+ # issue #15534
266+ self .checkequal (0 , '<......\u043c ...' , "rfind" , "<" )
267+
265268 def test_index (self ):
266269 self .checkequal (0 , 'abcdefghiabc' , 'index' , '' )
267270 self .checkequal (3 , 'abcdefghiabc' , 'index' , 'def' )
@@ -597,6 +600,8 @@ def test_replace(self):
597600 EQ ("ReyKKjavik" , "Reykjavik" , "replace" , "k" , "KK" , 1 )
598601 EQ ("Reykjavik" , "Reykjavik" , "replace" , "k" , "KK" , 0 )
599602 EQ ("A----B----C----" , "A.B.C." , "replace" , "." , "----" )
603+ # issue #15534
604+ EQ ('...\u043c ......<' , '...\u043c ......<' , "replace" , "<" , "<" )
600605
601606 EQ ("Reykjavik" , "Reykjavik" , "replace" , "q" , "KK" )
602607
@@ -1316,6 +1321,9 @@ def test_find_etc_raise_correct_error_messages(self):
13161321 self .assertRaisesRegex (TypeError , r'^endswith\(' , s .endswith ,
13171322 x , None , None , None )
13181323
1324+ # issue #15534
1325+ self .checkequal (10 , "...\u043c ......<" , "find" , "<" )
1326+
13191327
13201328class MixinStrUnicodeTest :
13211329 # Additional tests that only work with str and unicode.
0 commit comments