1   
 2   
 3   
 4   
 5   
 6   
 7   
 8   
 9  """ 
10  Regression testing. 
11  """ 
12  __docformat__ = 'epytext en' 
13   
14  import unittest, doctest, epydoc, os, os.path 
15   
17       
18      options = doctest.ELLIPSIS 
19      doctest.set_unittest_reportflags(doctest.REPORT_UDIFF) 
20   
21       
22      tests = [] 
23      testdir = os.path.join(os.path.split(__file__)[0]) 
24      if testdir == '': testdir = '.' 
25      for filename in os.listdir(testdir): 
26          if filename.endswith('.doctest'): 
27              tests.append(doctest.DocFileSuite(filename, optionflags=options)) 
28               
29       
30      unittest.TextTestRunner(verbosity=2).run(unittest.TestSuite(tests)) 
 31   
32  if __name__=='__main__': 
33      main() 
34