This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients chris.jerdonek, gward, jcea, twouters
Date 2012-07-31.20:29:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343766577.94.0.257776629393.issue15510@psf.upfronthosting.co.za>
In-reply-to
Content
Attaching patch with test cases.

I added 6 new tests:

*test_empty_string
test_whitespace_trailing
*test_drop_whitespace__all_whitespace
*test_initial_indent__empty_string
test_subsequent_indent__trailing_whitespace
test_subsequent_indent__long_indent

The starred ones fail with the current code (the test cases are similar to the snippets I included in my first comment).  The others fail under a certain incorrect implementation of this issue.  (I'm adding them to increase coverage of edge cases and to protect against future regressions.)
History
Date User Action Args
2012-07-31 20:29:38chris.jerdoneksetrecipients: + chris.jerdonek, twouters, gward, jcea
2012-07-31 20:29:37chris.jerdoneksetmessageid: <1343766577.94.0.257776629393.issue15510@psf.upfronthosting.co.za>
2012-07-31 20:29:36chris.jerdoneklinkissue15510 messages
2012-07-31 20:29:36chris.jerdonekcreate