Changeset 2331


Ignore:
Timestamp:
Feb 3, 2006, 11:20:56 AM (19 years ago)
Author:
duncan
Message:

bug fix

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/compile.py

    r2141 r2331  
    298298      path = '.'
    299299      files = os.listdir(path)
    300      
    301      
    302 
     300       
    303301  for filename in files:
    304302      root, ext = splitext(filename)
  • inundation/test_all.py

    r2302 r2331  
    1616#E.g. if they are known to fail and under development
    1717exclude_files = ['test_metis.py', 'test_version.py',
    18                  'test_interpolate.py'  # this is under development
     18                 'test_interpolate.py',# this is under development
    1919                 ]
    2020                 #'test_calculate_region.py', 'test_calculate_point.py']
     
    5959    import os, unittest
    6060    path = os.getcwd()
    61 
    62     files = get_test_files(path)
    63 
    64 
    65     while __file__ in files:
    66         try:
    67             files.remove(__file__)  #Remove self from list (Ver 2.3. or later)
    68         except:
    69             files.remove('test_all.py')
    70 
    71 
     61   
     62    files = [x for x in  get_test_files(path) if not x == 'test_all.py']
     63   
    7264    print 'Testing path %s:' %('...'+path[-50:])
    7365    for file in files:
  • test_all.py

    r2302 r2331  
    33buildroot = os.getcwd()
    44os.chdir('inundation')
    5 print 'Changing to', os.getcwd()        
     5print 'Changing to', buildroot   
    66
    77execfile('test_all.py')
Note: See TracChangeset for help on using the changeset viewer.