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 ethan.furman
Recipients CliffM, ethan.furman
Date 2013-10-14.14:08:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <525BFAE5.1080002@stoneleaf.us>
In-reply-to <1381740807.48.0.594318314007.issue19252@psf.upfronthosting.co.za>
Content
CliffM added the comment:
>
> Sorry -- I could have been clearer :
>
> The conditional:
>
>   if member.value == value:
>
> Is redundant as the tests stand.  If you comment it out -- everything works. So therefore we are missing a test.

Are you saying that you are commenting out the if test, but leaving in the return member?

> This makes the if-clause fragile for future maintenance.  So we need another test to ensure the loop is covered.

In case Python for loops suddenly stop working?

Sorry to be so dense, but I am not understanding the point you are trying to make... ahhhhhh!  Are trying to guard 
against the possibility that in the future someone might accidentally delete the if test, and the unit test won't catch 
it?  That certainly is a good reason to test values further into the loop.
History
Date User Action Args
2013-10-14 14:08:36ethan.furmansetrecipients: + ethan.furman, CliffM
2013-10-14 14:08:36ethan.furmanlinkissue19252 messages
2013-10-14 14:08:36ethan.furmancreate