pass code check
This commit is contained in:
@@ -21,7 +21,8 @@ def runTests( testDir, verbosity=1 ):
|
|||||||
# discover all tests in testDir
|
# discover all tests in testDir
|
||||||
testSuite = defaultTestLoader.discover( testDir )
|
testSuite = defaultTestLoader.discover( testDir )
|
||||||
# run tests
|
# run tests
|
||||||
success = TextTestRunner( verbosity=verbosity ).run( testSuite ).wasSuccessful()
|
success = ( TextTestRunner( verbosity=verbosity )
|
||||||
|
.run( testSuite ).wasSuccessful() )
|
||||||
sys.exit( 0 if success else 1 )
|
sys.exit( 0 if success else 1 )
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user