summaryrefslogtreecommitdiffstats
path: root/Lib/test/string_tests.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-10-30 10:03:53 (GMT)
committerGitHub <noreply@github.com>2019-10-30 10:03:53 (GMT)
commit865c3b257fe38154a4320c7ee6afb416f665b9c2 (patch)
treeab97967500a250cac15ac0d69aeb2c061bf313ba /Lib/test/string_tests.py
parent25fc088607c855060ed142296dc1bd0125fad1af (diff)
downloadcpython-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/test/string_tests.py')
-rw-r--r--Lib/test/string_tests.py1
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)