Пример #1
0
def testdriver():
    while moreTests():
        try:
            runNextTest()
        except:
            print('FAILED', testName(), sys.exc_info()[:2], file=log)
        else:
            print('PASSED', testName(), file=log)
Пример #2
0
def testdriver():
    while moreTests():
        try:
            runNextTest()
        except:
            print('FAILED', testName(), sys.exc_info()[:2], file=log)
        else:
            print('PASSED', testName(), file=log)
def testdrive():
    while moreTest():
        try :
            runNextTest()
        except:
            print('Failed',testName(),sys.exc_info()[:2],file=log)
        else:
            print('Passed' ,testName(),file=log)