diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-30 10:03:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 10:03:53 (GMT) |
commit | 865c3b257fe38154a4320c7ee6afb416f665b9c2 (patch) | |
tree | ab97967500a250cac15ac0d69aeb2c061bf313ba /Lib | |
parent | 25fc088607c855060ed142296dc1bd0125fad1af (diff) | |
download | cpython-865c3b257fe38154a4320c7ee6afb416f665b9c2.zip cpython-865c3b257fe38154a4320c7ee6afb416f665b9c2.tar.gz cpython-865c3b257fe38154a4320c7ee6afb416f665b9c2.tar.bz2 |
bpo-28029: Make "".replace("", s, n) returning s for any n != 0. (GH-16981)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/string_tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 38da941..948e2a3 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -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) |