diff options
author | Guido van Rossum <guido@python.org> | 2007-09-27 18:01:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-09-27 18:01:22 (GMT) |
commit | f1044293fa36667b5ba11fbc7acac21a03b82710 (patch) | |
tree | 41aac1b32323f1ae889d88c097157d330dc1aff7 /Lib/test/test_descr.py | |
parent | 4e02c503e789337b07cc14ece3f5adbf23732c89 (diff) | |
download | cpython-f1044293fa36667b5ba11fbc7acac21a03b82710.zip cpython-f1044293fa36667b5ba11fbc7acac21a03b82710.tar.gz cpython-f1044293fa36667b5ba11fbc7acac21a03b82710.tar.bz2 |
Patch # 1145 by Thomas Lee:
str.join(...) now applies str() to the sequence elements if they're
not strings alraedy, except for bytes, which still raise TypeError
(for the same reasons why ""==b"" raises it).
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 12bec1a..67ae239 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -3238,10 +3238,6 @@ def strops(): except ValueError: pass else: raise TestFailed("''.split('') doesn't raise ValueError") - try: ''.join([0]) - except TypeError: pass - else: raise TestFailed("''.join([0]) doesn't raise TypeError") - try: ''.rindex('5') except ValueError: pass else: raise TestFailed("''.rindex('5') doesn't raise ValueError") |