add test for #1816

This commit is contained in:
Dane Springmeyer 2013-04-17 13:40:17 -07:00
parent 20b643a22a
commit dac0e14068

View file

@ -619,6 +619,13 @@ if 'postgis' in mapnik.DatasourceCache.plugin_names() \
eq_(mapnik.Expression("[bool_field] != true").evaluate(feat),True) # in 2.1.x used to be False
eq_(mapnik.Expression("[bool_field] != false").evaluate(feat),True) # in 2.1.x used to be False
# https://github.com/mapnik/mapnik/issues/1816
def test_exception_message_reporting():
try:
ds = mapnik.PostGIS(dbname=MAPNIK_TEST_DBNAME,table='doesnotexist')
except Exception, e:
eq_(e.message != 'unidentifiable C++ exception', True)
atexit.register(postgis_takedown)
if __name__ == "__main__":