def patch_testcase_patch(): # Twisted-9.0.0 and earlier did not have a UnitTest.patch that worked on # Python-2.7 if twisted.version.major <= 9 and sys.version_info[:2] == (2, 7): from buildbot.monkeypatches import testcase_patch testcase_patch.patch()