treq
treq copied to clipboard
StubTreq does not support the timeout argument
There are two related issues here:
-
StubTreqdoesn't accept a reactor, so there's no way for the caller to manipulate time. -
StubTreqdoesn't pass that reactor when it instantiatesHTTPClient, soHTTPClientuses the global reactor to set the timeout.
Thus, if the timeout argument is passed to StubTreq.get() et. al. a delayed call is registered in the global reactor.