diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_strop.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_strop.py b/Lib/test/test_strop.py index de7a795..9130088 100644 --- a/Lib/test/test_strop.py +++ b/Lib/test/test_strop.py @@ -77,7 +77,9 @@ test('replace', 'one!two!three!', 'one@two!three!', '!', '@', 1) test('replace', 'one!two!three!', 'one@two@three!', '!', '@', 2) test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 3) test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 4) -test('replace', 'one!two!three!', 'one!two!three!', '!', '@', 0) +# CAUTION: a replace count of 0 means infinity only to strop, not to the +# string .replace() method or to the string.replace() function. +test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 0) test('replace', 'one!two!three!', 'one@two@three@', '!', '@') test('replace', 'one!two!three!', 'one!two!three!', 'x', '@') test('replace', 'one!two!three!', 'one!two!three!', 'x', '@', 2) |