summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-23 18:21:28 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-23 18:21:28 (GMT)
commit8b1a6d694fa2f38cde77892c5ee0bb177be49db6 (patch)
treee3f7c901c642cd2500cb87648b6976c8d539a1fb /Lib/test/test_descr.py
parent280488b9a3b5cc213d01aae794751b89144f8609 (diff)
downloadcpython-8b1a6d694fa2f38cde77892c5ee0bb177be49db6.zip
cpython-8b1a6d694fa2f38cde77892c5ee0bb177be49db6.tar.gz
cpython-8b1a6d694fa2f38cde77892c5ee0bb177be49db6.tar.bz2
Code by Inyeol Lee, submitted to SF bug 595350, to implement
the string/unicode method .replace() with a zero-lengt first argument. Inyeol contributed tests for this too.
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index bedb9d2..0c7def1 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -2996,10 +2996,6 @@ def strops():
except ValueError: pass
else: raise TestFailed, "''.rindex('5') doesn't raise ValueError"
- try: ''.replace('', '')
- except ValueError: pass
- else: raise TestFailed, "''.replace('', '') doesn't raise ValueError"
-
try: '%(n)s' % None
except TypeError: pass
else: raise TestFailed, "'%(n)s' % None doesn't raise TypeError"