=== timfrost is now known as timfrost1 [03:24] lifeless: got a second? [03:32] sure [03:34] 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] It seems I need to glue the glib main loop into the ADRT _run_core somehow? [03:35] sure [03:35] uhm [03:35] you can do that [03:35] but unlike twisted glib supports nested loops [03:35] so you can be a lot simpler [03:36] hook up your glib signal to the glib stop event [03:36] and just call glib.mainloop() from your test [03:36] it will exit when the stop/exit event tells it to stop [03:37] hmmmmm [03:37] the ADRT is used because there are fugly things needed to work with the twisted reactor [03:37] and to add timeout support [03:37] what you'd need to do to do glib support *in that manner* is to create a new ADRT specialised for glib. [03:38] it will be very different code in some parts [03:38] yeah... cool - thanks, I'll try that. [03:39] I'd try using glib directly first [03:39] get that working, then look at hauling it out sideways. [03:40] 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] lifeless: yeah... that sounds sensible [19:34] morning [19:53] morning [20:02] morning [20:30] morning