Chris Jerdonek <chris.jerdo...@gmail.com> added the comment:

That is one way to do it.  But it would be better to use a local variable 
rather than an attribute of the class (because otherwise you have to worry 
about resetting the value if more than one test uses the same pattern).  
Something like this would be better
called = []
def cb(packet):
    called.append(1)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15464>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to