class documentation
class RaisingMemoryReactor: (source)
Constructor: RaisingMemoryReactor(listenException, connectException)
Implements interfaces: twisted.internet.interfaces.IReactorPluggableNameResolver
, twisted.internet.interfaces.IReactorSocket
, twisted.internet.interfaces.IReactorSSL
, twisted.internet.interfaces.IReactorTCP
, twisted.internet.interfaces.IReactorUNIX
A fake reactor to be used in tests. It accepts TCP connection setup attempts, but they will fail.
def __init__(self, listenException:
Exception | None
= None, connectException: Exception | None
= None):
(source)
¶
Parameters | |
listenException | None | An instance of an Exception to raise when any listen method is called. |
connectException | None | An instance of an Exception to raise when any connect method is called. |