summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_textwrap.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-06-08 14:30:53 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-06-08 14:30:53 (GMT)
commit9b775535f828bedc30f3f52a04afec049b6aa25a (patch)
tree12b9a0e80636c157457d827a7436e77d843e03b3 /Lib/test/test_textwrap.py
parent0157ebe999e951a4a3a5296586b08f4f96384bb3 (diff)
downloadcpython-9b775535f828bedc30f3f52a04afec049b6aa25a.zip
cpython-9b775535f828bedc30f3f52a04afec049b6aa25a.tar.gz
cpython-9b775535f828bedc30f3f52a04afec049b6aa25a.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_textwrap.py')
-rw-r--r--Lib/test/test_textwrap.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/test/test_textwrap.py b/Lib/test/test_textwrap.py
index 472d125..89316bc 100644
--- a/Lib/test/test_textwrap.py
+++ b/Lib/test/test_textwrap.py
@@ -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