Previous: Keeping State in Tests, Up: Buildbot Tests


8.10.3 Better Debugging through Monkeypatching

The module buildbot.test.util.monkeypatches contains a few monkey-patches to Twisted that detect errors a bit better. These patches shouldn't affect correct behavior, so it's worthwhile including something like this in the header of every test file:

     from buildbot.test.util.monkeypatches import monkeypatch
     monkeypatch()