Browse Source

Fix random failing test

pull/219/merge
Florian Mounier 10 years ago
parent
commit
7600ec6e28
  1. 3
      pygal/test/test_graph.py

3
pygal/test/test_graph.py

@ -81,7 +81,8 @@ def test_metadata(Chart):
elif Chart == pygal.XY: elif Chart == pygal.XY:
v = list(map(lambda x: (x, x + 1), v)) v = list(map(lambda x: (x, x + 1), v))
elif issubclass(Chart, BaseMap): 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', [ chart.add('Serie with metadata', [
v[0], v[0],

Loading…
Cancel
Save