mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Rename checks for test_support.have_unicode (we always
have unicode support now) and either drop the tests or merge them into the existing tests.
This commit is contained in:
parent
0157ebe999
commit
9b775535f8
7 changed files with 62 additions and 112 deletions
|
@ -336,19 +336,6 @@ What a mess!
|
|||
"with ", "much white", "space."],
|
||||
drop_whitespace=False)
|
||||
|
||||
if test_support.have_unicode:
|
||||
def test_unicode(self):
|
||||
# *Very* simple test of wrapping Unicode strings. I'm sure
|
||||
# there's more to it than this, but let's at least make
|
||||
# sure textwrap doesn't crash on Unicode input!
|
||||
text = "Hello there, how are you today?"
|
||||
self.check_wrap(text, 50, ["Hello there, how are you today?"])
|
||||
self.check_wrap(text, 20, ["Hello there, how are", "you today?"])
|
||||
olines = self.wrapper.wrap(text)
|
||||
assert isinstance(olines, list) and isinstance(olines[0], str)
|
||||
otext = self.wrapper.fill(text)
|
||||
assert isinstance(otext, str)
|
||||
|
||||
def test_split(self):
|
||||
# Ensure that the standard _split() method works as advertised
|
||||
# in the comments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue