diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-04-21 00:55:49 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-04-21 00:55:49 (GMT) |
commit | 38bae2d7f19157c398248ccc8eb188aad028e885 (patch) | |
tree | 55b987750783c106c94490262b488dea1aa7f11c /Lib | |
parent | dbccf6ad4cfab2d27946b108587d46fca931cbe9 (diff) | |
parent | 65f7a9e3c097169b7ba8ded9a957b65a0fd54604 (diff) | |
download | cpython-38bae2d7f19157c398248ccc8eb188aad028e885.zip cpython-38bae2d7f19157c398248ccc8eb188aad028e885.tar.gz cpython-38bae2d7f19157c398248ccc8eb188aad028e885.tar.bz2 |
Merge removal of duplicated tests from 3.3.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/string_tests.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 385b039..1d70385 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -714,27 +714,6 @@ class CommonTest(BaseTest): self.checkraises(TypeError, 'hello', 'capitalize', 42) - def test_lower(self): - self.checkequal('hello', 'HeLLo', 'lower') - self.checkequal('hello', 'hello', 'lower') - self.checkraises(TypeError, 'hello', 'lower', 42) - - def test_upper(self): - self.checkequal('HELLO', 'HeLLo', 'upper') - self.checkequal('HELLO', 'HELLO', 'upper') - self.checkraises(TypeError, 'hello', 'upper', 42) - - def test_expandtabs(self): - self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs') - self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs', 8) - self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs', 4) - self.checkequal('abc\r\nab def\ng hi', 'abc\r\nab\tdef\ng\thi', 'expandtabs', 4) - self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs') - self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs', 8) - self.checkequal('abc\r\nab\r\ndef\ng\r\nhi', 'abc\r\nab\r\ndef\ng\r\nhi', 'expandtabs', 4) - - self.checkraises(TypeError, 'hello', 'expandtabs', 42, 42) - def test_additional_split(self): self.checkequal(['this', 'is', 'the', 'split', 'function'], 'this is the split function', 'split') |