mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-28029: Make "".replace("", s, n) returning s for any n != 0. (GH-16981)
This commit is contained in:
parent
25fc088607
commit
865c3b257f
5 changed files with 18 additions and 9 deletions
|
@ -505,6 +505,7 @@ class BaseTest:
|
|||
EQ("", "", "replace", "A", "")
|
||||
EQ("", "", "replace", "A", "A")
|
||||
EQ("", "", "replace", "", "", 100)
|
||||
EQ("A", "", "replace", "", "A", 100)
|
||||
EQ("", "", "replace", "", "", sys.maxsize)
|
||||
|
||||
# interleave (from=="", 'to' gets inserted everywhere)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue