testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00350
[Bug 684071] Re: monkey patching 'debug' breaks twisted.internet.base.DelayedCall
I don't understand this bug. In particular, it's not clear how monkey-
patching debug breaks DelayedCall.
It sounds like it might be an issue with DelayedCall itself?
--
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
https://bugs.launchpad.net/bugs/684071
Title:
monkey patching 'debug' breaks twisted.internet.base.DelayedCall
Status in testtools:
New
Bug description:
affects testtools
twisted.internet.base.DelayedCall has different behaviour depending
whether or not debug was specified to its constructor. It will set
self.creator to traceback.format_stack().
Later on, in its __str__ it uses the debug attribute to determine
whether or not to add a traceback to the output - a traceback which is
not available in case testtools monkey patched debug to be true.
Btw, apart from this issue the debug code was really useful in tracking
down a bug in the builddmanager yesterday. Thanks for writing it.
Cheers,
jelmer
References