From 8dca9dbb2b9012caf9d37ae60906756aa6c0e037 Mon Sep 17 00:00:00 2001 From: Mickey Rose Date: Tue, 16 Oct 2012 18:27:56 +0200 Subject: [PATCH] tests: fix svg render test output filename --- tests/python_tests/render_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python_tests/render_test.py b/tests/python_tests/render_test.py index 19e547f26..93554e175 100644 --- a/tests/python_tests/render_test.py +++ b/tests/python_tests/render_test.py @@ -140,7 +140,7 @@ def test_render_points(): p = mapnik.Projection(projs[projdescr]) m.zoom_to_box(p.forward(mapnik.Box2d(ul_lonlat,lr_lonlat))) # Render to SVG so that it can be checked how many points are there with string comparison - svg_file = os.path.join(tempfile.gettempdir(),'%s.svg') + svg_file = os.path.join(tempfile.gettempdir(), 'mapnik-render-points-%s.svg' % projdescr) mapnik.render_to_file(m, svg_file) num_points_present = len(ds.all_features()) svg = open(svg_file,'r').read()