[03:24] <thomi> lifeless: got a second?
[03:32] <lifeless> sure
[03:34] <thomi> lifeless: some kind folk in #python tell me that there's something in testtools that should let me relinquish control mid-way through a test to the glib main loop, then complete my test when some glib signal is fired. Possibly something to do with AsynchronousDeferredRunTest, but I'm struggling to find any examples of that that make sense to me.
[03:35] <thomi> It seems I need to glue the glib main loop into the ADRT _run_core somehow?
[03:35] <lifeless> sure
[03:35] <lifeless> uhm
[03:35] <lifeless> you can do that
[03:35] <lifeless> but unlike twisted glib supports nested loops
[03:35] <lifeless> so you can be a lot simpler
[03:36] <lifeless> hook up your glib signal to the glib stop event
[03:36] <lifeless> and just call glib.mainloop() from your test
[03:36] <lifeless> it will exit when the stop/exit event tells it to stop
[03:37] <thomi> hmmmmm
[03:37] <lifeless> the ADRT is used because there are fugly things needed to work with the twisted reactor
[03:37] <lifeless> and to add timeout support
[03:37] <lifeless> what you'd need to do to do glib support *in that manner* is to create a new ADRT specialised for glib.
[03:38] <lifeless> it will be very different code in some parts
[03:38] <thomi> yeah... cool - thanks, I'll try that.
[03:39] <lifeless> I'd try using glib directly first
[03:39] <lifeless> get that working, then look at hauling it out sideways.
[03:40] <lifeless> timeouts are easy with glib - just setup a glib clock event to call loop.stop or whatever (I'm making up the names becaues I haven't looked at glib code in a couple of years)
[03:54] <thomi> lifeless: yeah... that sounds sensible
[19:34] <chilts> morning
[19:53] <ibeardslee> morning
[20:02] <ajmitch> morning
[20:30] <Atamira> morning