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, pitrou, tweksteen
Date 2012-07-31.03:59:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343707156.08.0.383480705889.issue15464@psf.upfronthosting.co.za>
In-reply-to
Content
I haven't commented on the content of your patch (I'm not knowledgeable enough in this area), but as for your test, I noticed that you removed the part that asserted something about the argument passed to cb().

Ideally when testing a callback, you want to test whatever is important about it, like: that it gets called at the right times (and as many times as it should), and that it is getting passed the right data.

So you might also want to make whatever assertions are appropriate about the packet(s) passed to cb().
History
Date User Action Args
2012-07-31 03:59:16chris.jerdoneksetrecipients: + chris.jerdonek, pitrou, tweksteen
2012-07-31 03:59:16chris.jerdoneksetmessageid: <1343707156.08.0.383480705889.issue15464@psf.upfronthosting.co.za>
2012-07-31 03:59:15chris.jerdoneklinkissue15464 messages
2012-07-31 03:59:15chris.jerdonekcreate