I’m implementing a protocol which may be instantiated with different timeouts, so I use TimeoutMixin. The idea can be represented with this dummy class: my_protocol.py To test it with the Twisted Trial a made this unittest roughly following the official tutorial: test_my_protocol.py I get the following error when running the test: This is what official docs says on the topic: