mirror of
https://github.com/python/cpython.git
synced 2025-11-09 18:11:38 +00:00
Apply perky's fix for #1503157: "/".join([u"", u""]) raising OverflowError.
Also improve error message on overflow.
This commit is contained in:
parent
6946ea0be0
commit
90e27d38f5
3 changed files with 6 additions and 4 deletions
|
|
@ -938,6 +938,8 @@ def test_join(self):
|
|||
# test.test_string.StringTest.test_join)
|
||||
self.checkequal('a b c d', ' ', 'join', ['a', 'b', 'c', 'd'])
|
||||
self.checkequal('abcd', '', 'join', ('a', 'b', 'c', 'd'))
|
||||
self.checkequal('bd', '', 'join', ('', 'b', '', 'd'))
|
||||
self.checkequal('ac', '', 'join', ('a', '', 'c', ''))
|
||||
self.checkequal('w x y z', ' ', 'join', Sequence())
|
||||
self.checkequal('abc', 'a', 'join', ('abc',))
|
||||
self.checkequal('z', 'a', 'join', UserList(['z']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue