From c56af71127fdd8441a1b94f681d1c0ceeedef01a Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Fri, 21 Feb 2014 14:43:43 +0100 Subject: [PATCH] Prevent concurrent test crash --- pygal/test/test_config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pygal/test/test_config.py b/pygal/test/test_config.py index deb0e22..895bd6b 100644 --- a/pygal/test/test_config.py +++ b/pygal/test/test_config.py @@ -23,6 +23,7 @@ from pygal import ( from pygal._compat import u from pygal.test.utils import texts from pygal.test import pytest_generate_tests, make_data +from uuid import uuid4 def test_config_behaviours(): @@ -272,7 +273,7 @@ def test_include_x_axis(Chart): chart = Chart() if Chart in (Pie, Radar, Funnel, Dot, Gauge, Worldmap, SupranationalWorldmap, Histogram, Box, - FrenchMap_Regions, FrenchMap_Departments): + FrenchMap_Regions, FrenchMap_Departments): return if not chart.cls._dual: data = 100, 200, 150 @@ -294,7 +295,7 @@ def test_include_x_axis(Chart): def test_css(Chart): css = "{{ id }}text { fill: #bedead; }\n" - css_file = '/tmp/pygal_custom_style.css' + css_file = '/tmp/pygal_custom_style-%s.css' % uuid4() with open(css_file, 'w') as f: f.write(css)