[Twisted-Python] runReactor tests vs. t.i.task.cooperate and other users of the global reactor

Itamar Turner-Trauring itamar at itamarst.org
Tue Jul 26 06:39:46 MDT 2011


Deep within the bowels of the new TLS code, cooperate() is used.
Unfortunately, that uses the global reactor... which means it breaks in
tests that create a new reactor instance. Should I just change the new
TLS code to take in a reactor instance and pass it everywhere? Or, as
part of the test framework, have runReactor override the global reactor
instance?

-Itamar





More information about the Twisted-Python mailing list