Fix false negative responses from python tests

Closes #2298
This commit is contained in:
Sandro Santilli 2014-07-14 18:34:20 +02:00
parent 24e21cd387
commit cd21789111
55 changed files with 55 additions and 55 deletions

View file

@ -37,4 +37,4 @@ def test_that_coordinates_do_not_overflow_and_polygon_is_rendered():
eq_(im.get_pixel(128,128),expected_color.packed())
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -174,4 +174,4 @@ def test_envelope_clipping():
eq_(e1,e2)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -60,4 +60,4 @@ if mapnik.has_grid_renderer():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -190,4 +190,4 @@ if mapnik.has_pycairo():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -259,4 +259,4 @@ def test_background_image_with_alpha_and_background_color_against_composited_con
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -125,4 +125,4 @@ def test_hit_grid():
if __name__ == '__main__':
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -21,4 +21,4 @@ def test_datasource_template_is_working():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -34,4 +34,4 @@ def test_serializing_arbitrary_parameters():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -63,4 +63,4 @@ def test_feature_hit_count():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -96,4 +96,4 @@ def test_feature_expression_evaluation_attr_with_spaces():
eq_(expr.evaluate(f),True)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -442,4 +442,4 @@ def test_division_by_zero():
eq_(expr.evaluate(f),None)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -13,4 +13,4 @@ import mapnik
# ts = mapnik.TextSymbolizer('Name', 'Invalid Font Name', int(8), mapnik.Color('black'))
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -39,4 +39,4 @@ def test_loading_fontset_from_map():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -76,4 +76,4 @@ if 'geojson' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -301,4 +301,4 @@ def test_handling_geojson_null_geoms():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -10,4 +10,4 @@ def test_grayscale_conversion():
eq_((pixel >> 24) & 0xff,255);
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -124,4 +124,4 @@ def do_encoding():
if __name__ == "__main__":
setup()
do_encoding()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -65,4 +65,4 @@ if 'shape' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -79,4 +79,4 @@ def test_image_open_from_string():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -58,4 +58,4 @@ def test_introspect_symbolizers():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -100,4 +100,4 @@ def test_char_escaping():
eq_(pyjson['properties']['name'],expected)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -32,4 +32,4 @@ if 'sqlite' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -72,4 +72,4 @@ def test_adding_datasource_to_layer():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -25,4 +25,4 @@ def test_layer_init():
eq_(len(l.styles),0)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -57,4 +57,4 @@ def test_good_files():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -101,4 +101,4 @@ if 'shape' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -77,4 +77,4 @@ def test_mapnik_config_valid_and_invalid_option():
eq_(process.returncode,0)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -15,4 +15,4 @@ def test_logger_init():
eq_(mapnik.logger.get_severity(),default)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -37,4 +37,4 @@ if 'csv' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -31,4 +31,4 @@ def test_add_feature():
eq_(len(retrieved), 0)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -65,4 +65,4 @@ def test_multi_tile_policy():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -41,4 +41,4 @@ if 'shape' in plugins and 'ogr' in plugins:
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -62,4 +62,4 @@ if 'ogr' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -49,4 +49,4 @@ if 'osm' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -47,4 +47,4 @@ if 'shape' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -58,4 +58,4 @@ def test_parameters():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -42,4 +42,4 @@ def test_parameters_pickle():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -161,4 +161,4 @@ if mapnik.has_png():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -32,4 +32,4 @@ def test_broken_pngs():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -1025,4 +1025,4 @@ if 'postgis' in mapnik.DatasourceCache.plugin_names() \
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -115,4 +115,4 @@ def test_proj_transform_between_init_and_literal():
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -34,4 +34,4 @@ def test_query_resolution():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -40,4 +40,4 @@ if 'shape' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -87,4 +87,4 @@ def test_stop_label():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -196,4 +196,4 @@ def test_raster_warping_does_not_overclip_source():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -352,4 +352,4 @@ if mapnik.has_grid_renderer():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -238,4 +238,4 @@ if 'shape' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -89,4 +89,4 @@ if 'shape' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -63,4 +63,4 @@ def test_compare_map():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -110,4 +110,4 @@ if 'shape' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -156,4 +156,4 @@ if 'sqlite' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -418,4 +418,4 @@ if 'sqlite' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -16,4 +16,4 @@ def test_style_init():
eq_(s.image_filters_inflate,False)
if __name__ == "__main__":
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -70,4 +70,4 @@ if 'topojson' in mapnik.DatasourceCache.plugin_names():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))

View file

@ -159,4 +159,4 @@ if mapnik.has_webp():
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))