]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF #847346: add test_fix_sentence_endings() to ensure that sentence
authorGreg Ward <gward@python.net>
Thu, 13 May 2004 01:45:33 +0000 (01:45 +0000)
committerGreg Ward <gward@python.net>
Thu, 13 May 2004 01:45:33 +0000 (01:45 +0000)
commit6e35b68fecf5a13acdc5523985febb764c47559b
tree1c192a288cb12ec704e819fd322bb93201cf8cc4
parent163addf838742e2f1e7fd785b44f3a1a35473293
SF #847346: add test_fix_sentence_endings() to ensure that sentence
endings get fixed even if the input is too short to wrap.  Also throw
in a bunch of other tests for this rather tricky and under-tested
feature.

In WrapTestCase.setUp(), don't bother setting fix_sentence_endings=True
for self.wrapper -- just use a separate wrapper in the two tests that
care about it, namely test_whitespace() and test_fix_sentence_endings().
Lib/test/test_textwrap.py