← Back to team overview

testtools-dev team mailing list archive

[Bug 684071] Re: monkey patching 'debug' breaks twisted.internet.base.DelayedCall

 

** Tags added: twisted

-- 
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:
  Triaged
Status in Twisted:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/testtools/+bug/684071/+subscriptions


References