Merge pull request #2343 from strk/2.3.x-false-negatives
Fix false negative responses from python tests
This commit is contained in:
commit
fdf86c7411
54 changed files with 54 additions and 54 deletions
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -39,4 +39,4 @@ def test_loading_fontset_from_python():
|
|||
|
||||
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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -296,4 +296,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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -68,4 +68,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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -1016,4 +1016,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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -195,4 +195,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_")))
|
||||
|
|
|
@ -383,4 +383,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_")))
|
||||
|
|
|
@ -237,4 +237,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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
|
@ -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_")))
|
||||
|
|
Loading…
Reference in a new issue