mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Issue #26712: Unify (r)split, (l/r)strip tests into string_tests
This eliminates a few redundant test cases.
This commit is contained in:
parent
d979b2cfcf
commit
0d0db6cc1e
3 changed files with 35 additions and 96 deletions
|
@ -380,10 +380,6 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
def test_split(self):
|
||||
string_tests.CommonTest.test_split(self)
|
||||
|
||||
# Mixed arguments
|
||||
self.checkequalnofix(['a', 'b', 'c', 'd'], 'a//b//c//d', 'split', '//')
|
||||
self.checkequalnofix(['a', 'b', 'c', 'd'], 'a//b//c//d', 'split', '//')
|
||||
self.checkequalnofix(['endcase ', ''], 'endcase test', 'split', 'test')
|
||||
# test mixed kinds
|
||||
for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'):
|
||||
left *= 9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue