diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-04-25 16:59:09 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-04-25 16:59:09 +0000 |
commit | fe536f53ea1c4541e5297cea0c9460e5259cb1d8 (patch) | |
tree | 7f3e9b2e204a2e0c6c498b4fd60d1539f97e33ab /Lib/test/test_textwrap.py | |
parent | 65134662707f270146122ffd71b4a6ac10536e4d (diff) | |
download | cpython-git-fe536f53ea1c4541e5297cea0c9460e5259cb1d8.tar.gz |
Issue 2635: fix bug in the fix_sentence_endings option to textwrap.fill.
Diffstat (limited to 'Lib/test/test_textwrap.py')
-rw-r--r-- | Lib/test/test_textwrap.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_textwrap.py b/Lib/test/test_textwrap.py index 787153e3cd..c1c09f6a3e 100644 --- a/Lib/test/test_textwrap.py +++ b/Lib/test/test_textwrap.py @@ -129,6 +129,10 @@ What a mess! expect = ['And she said, "Go to hell!" Can you believe that?'] self.check(wrapper.wrap(text), expect) + text = 'File stdio.h is nice.' + expect = ['File stdio.h is nice.'] + self.check(wrapper.wrap(text), expect) + def test_wrap_short(self): # Wrapping to make short lines longer |