From 7600ec6e28c1db754d7eebdfd336b959b657c409 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Tue, 23 Jun 2015 11:50:09 +0200 Subject: [PATCH] Fix random failing test --- pygal/test/test_graph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygal/test/test_graph.py b/pygal/test/test_graph.py index 713c00e..36261da 100644 --- a/pygal/test/test_graph.py +++ b/pygal/test/test_graph.py @@ -81,7 +81,8 @@ def test_metadata(Chart): elif Chart == pygal.XY: v = list(map(lambda x: (x, x + 1), v)) elif issubclass(Chart, BaseMap): - v = [(i, k) for k, i in enumerate(Chart.x_labels)] + v = [(k, i) for i, k in enumerate(Chart.x_labels) if k not in [ + 'oecd', 'nafta', 'eur']] chart.add('Serie with metadata', [ v[0],