[Twisted-Python] In case anyone is bored... fun with tests!

Christopher Armstrong radix at twistedmatrix.com
Mon Jan 13 09:21:23 EST 2003


On Tue, Jan 14, 2003 at 01:18:01AM +1100, Andrew Bennetts wrote:
> hmm, perhaps trial should somehow hook into the warnings framework to make
> it log these errors automagically?)

See twisted.python.log.showwarning and the two lines immediately below
it for an example of hooking into the warnings system (yes, that
really is the API you're supposed to use to do it).

-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/




More information about the Twisted-Python mailing list