twisted.application.reactors.installReactor should return the installed reactor.
|Reported by:||Tom Prince||Owned by:||Tom Prince|
branch-diff, diff-cov, branch-cov, buildbot
In general, it is preferred to pass a reactor around explicitly, rather than just importing it from
twisted.internet. However, when testing code that explicitly creates a reactor, the only way for that code to get a hold of the just installed reactor is to import it.
This means that that to test code that explicitly installs the reactor and then uses it, you need to stub out the code that installs the reactor *and* the global reactor.
If instead, the reactor that is installed is returned, then only the former needs to be stubbed out.