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 MarkRoddy
Recipients MarkRoddy, ezio.melotti, michael.foord, rhettinger
Date 2010-11-21.00:38:25
SpamBayes Score 1.0284375e-07
Marked as misclassified No
Message-id <1290299907.79.0.770595944106.issue10242@psf.upfronthosting.co.za>
In-reply-to
Content
Adding patch for py3k which implements Raymond's suggested fix which utilizes collections.Counter.  

Have not changed the name of the assertion method as this seems as though it may be outside the scope of this issue, but I can produce another patch with the name change if desired.  Though how the old name should be deprecated needs to be addressed.

Note that it may make sense to reconsider the current failure message from this test to take into account the fact that the test could be failing due to the number of entries for a single value differing between the two sequences.  In this case the "Expected, bug missing..." or "Unexpected but present..." messages are still utilized but could be miss leading.

Also, holding off on porting to unittest2 until the above issues have been addressed (or at least confirmed to be non-issues).
History
Date User Action Args
2010-11-21 00:38:27MarkRoddysetrecipients: + MarkRoddy, rhettinger, ezio.melotti, michael.foord
2010-11-21 00:38:27MarkRoddysetmessageid: <1290299907.79.0.770595944106.issue10242@psf.upfronthosting.co.za>
2010-11-21 00:38:26MarkRoddylinkissue10242 messages
2010-11-21 00:38:26MarkRoddycreate