Re: [Twisted-Python] unit testing question: twisted with tk

2012-07-18 Thread Russell E. Owen
In article <5006fc68.8050...@itamarst.org>, Itamar Turner-Trauring wrote: > On 07/18/2012 01:01 PM, Russell E. Owen wrote: > > I have a bit of code that combines twisted with Tkinter > > and now I'd like to write some unittests for it. > > > > I can't seem to figure out how to get TwistedTrial t

Re: [Twisted-Python] unit testing question: twisted with tk

2012-07-18 Thread Itamar Turner-Trauring
On 07/18/2012 01:01 PM, Russell E. Owen wrote: > I have a bit of code that combines twisted with Tkinter > and now I'd like to write some unittests for it. > > I can't seem to figure out how to get TwistedTrial to handle this case. > I've written a unit test like this: > > from twisted.trial import

Re: [Twisted-Python] unit testing question: twisted with tk

2012-07-18 Thread Phil Mayers
On 07/18/2012 06:01 PM, Russell E. Owen wrote: > root = Tkinter.Tk() > twisted.internet.tksupport.install(root) Does the TK support work like other reactors i.e. it must be the very first thing in the python file, before all other Twisted imports? ___

[Twisted-Python] unit testing question: twisted with tk

2012-07-18 Thread Russell E. Owen
I have a bit of code that combines twisted with Tkinter and now I'd like to write some unittests for it. I can't seem to figure out how to get TwistedTrial to handle this case. I've written a unit test like this: from twisted.trial import unittest from twisted.internet.defer import Deferred impo