Ignore:
Timestamp:
Mar 11, 2009, 2:30:25 PM (14 years ago)
Author:
ole
Message:

Reinstated compatibility code for Python2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py

    r6490 r6492  
    66236623            msg = 'Test failed: %s' % str(e)
    66246624            raise Exception, msg
    6625         finally:
    6626             # Cleanup regardless
    66276625            os.remove(meshname)
    66286626            os.remove(points_file)
     6627        else:
     6628            os.remove(meshname)
     6629            os.remove(points_file)           
     6630       
     6631        #finally:
     6632            # Cleanup regardless
     6633            #FIXME(Ole): Finally does not work like this in python2.4
     6634            #FIXME(Ole): Reinstate this when Python2.4 is out of the way
     6635            #FIXME(Ole): Python 2.6 apparently introduces something called 'with'           
     6636            #os.remove(meshname)
     6637            #os.remove(points_file)
    66296638           
    66306639           
    6631         #FIXME(Ole): Finally does not work like this in python2.3
    6632         #FIXME(Ole): Reinstate this when Python2.3 is out of the way
    6633         #FIXME(Ole): Python 2.6 apparently introduces something called 'with'
     6640
    66346641       
    66356642       
     
    67016708            msg = 'Test failed: %s' % str(e)
    67026709            raise Exception, msg
    6703         finally:
    6704             # Cleanup regardless
    67056710            os.remove(meshname)
    6706 
     6711        else:
     6712            os.remove(meshname)
    67076713                   
    67086714       
Note: See TracChangeset for help on using the changeset viewer.