]> granicus.if.org Git - python/commit
test_bug1001011(): Verify that
authorTim Peters <tim.peters@gmail.com>
Fri, 27 Aug 2004 05:36:07 +0000 (05:36 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 27 Aug 2004 05:36:07 +0000 (05:36 +0000)
commit108f13751999f63c20fa9067f3fc0feb6a87718e
tree141841ac135b6be661c7d316f2fee21f158d5e2c
parent894c512c2ff6c2ec511716e58d8c4d9ff7e8c137
test_bug1001011():  Verify that

    s.join([t]) is t

for (s, t) in (str, str), (unicode, unicode), and (str, unicode).
For (unicode, str), verify that it's *not* t (the result is promoted
to unicode instead).  Also verify that when t is a subclass of str or
unicode that "the right thing" happens.
Lib/test/string_tests.py