Changeset 336
- Timestamp:
- Sep 22, 2004, 9:09:04 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/test_all.py
r195 r336 10 10 11 11 import unittest 12 import os 12 13 13 14 def regressionTest(): … … 15 16 path = os.path.split(sys.argv[0])[0] or os.getcwd() 16 17 files = os.listdir(path) 17 test = re.compile( "^test_[\w]*.py$", re.IGNORECASE)18 test = re.compile('^test_[\w]*.py$', re.IGNORECASE) 18 19 files = filter(test.search, files) 19 20 … … 29 30 return unittest.TestSuite(map(load, modules)) 30 31 31 if __name__ == "__main__": 32 unittest.main(defaultTest="regressionTest") 32 if __name__ == '__main__': 33 34 os.system('python compile.py') #Attempt to compile all extensions 33 35 36 unittest.main(defaultTest='regressionTest') 37
Note: See TracChangeset
for help on using the changeset viewer.