class MyTestResult(unittest._TextTestResult):

    def addSuccess(self, test):
        TestResult.addSuccess(self, test)

def addError(self, test, err):
    TestResult.addError(self, test, err)

def addFailure(self, test, err):
    TestResult.addFailure(self, test, err)
Turn some print off in python unittest