Changeset 8060


Ignore:
Timestamp:
Oct 30, 2010, 6:37:00 PM (8 years ago)
Author:
steve
Message:

Unit test for read_polygon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/geometry/test_polygon.py

    r8058 r8060  
    8989        filename = path + sep + 'complex_polygon.csv'
    9090        # Should cause an Exception
    91         p1 = read_polygon(filename)
     91        try:
     92            p1 = read_polygon(filename)
     93        except Exception:
     94            pass
     95        else:
     96            raise Exception, 'Closed polygon should have raised exception'
     97
    9298
    9399
Note: See TracChangeset for help on using the changeset viewer.