fromlitimportTestclassManyTests(object):def__init__(self,N=10000):self.N=NdefgetTestsInDirectory(self,testSuite,path_in_suite,litConfig,localConfig):foriinrange(self.N):test_name="test-%04d"%(i,)yieldTest.Test(testSuite,path_in_suite+(test_name,),localConfig)defexecute(self,test,litConfig):# Do a "non-trivial" amount of Python work.
sum=0foriinrange(10000):sum+=ireturnTest.PASS, ""