diff --git a/pygal/test/test_graph.py b/pygal/test/test_graph.py index 39300d49..eee71133 100644 --- a/pygal/test/test_graph.py +++ b/pygal/test/test_graph.py @@ -20,7 +20,6 @@ import io import os -import sys import uuid import pytest @@ -326,36 +325,7 @@ def test_unicode_labels_decode(Chart): chart.render_pyquery() -def test_unicode_labels_python2(Chart): - """Test unicode labels in python 2""" - if sys.version_info[0] == 3: - return - chart = Chart() - chart.add( - 'Série1', [{ - 'value': 1, - 'xlink': 'http://1/', - 'label': eval("u'°ijæð©&×&<—×€¿_…'") - }, { - 'value': 2, - 'xlink': { - 'href': 'http://6.example.com/' - }, - 'label': eval("u'æ°€≠|€æ°€əæ'") - }, { - 'value': 3, - 'label': eval("'unicode <3'") - }] - ) - if not chart._dual: - chart.x_labels = eval("[u'&œ', u'¿?', u'††††††††', 'unicode <3']") - chart.render_pyquery() - - -def test_unicode_labels_python3(Chart): - """Test unicode labels in python 3""" - if sys.version_info[0] == 2: - return +def test_unicode_labels(Chart): chart = Chart() chart.add( 'Série1', [{ diff --git a/pygal/test/test_util.py b/pygal/test/test_util.py index 03bdca41..21f71181 100644 --- a/pygal/test/test_util.py +++ b/pygal/test/test_util.py @@ -18,7 +18,6 @@ # along with pygal. If not, see . """Utility functions tests""" -import sys from pytest import raises @@ -172,8 +171,4 @@ def test_mergextend(): assert mergextend(['a', Ellipsis, 'b'], ['c', 'd']) == ['a', 'c', 'd', 'b'] - if sys.version_info[0] >= 3: - # For @#! sake it's 2016 now - assert eval("mergextend(['a', ..., 'b'], ['c', 'd'])") == [ - 'a', 'c', 'd', 'b' - ] + assert mergextend(['a', ..., 'b'], ['c', 'd']) == ['a', 'c', 'd', 'b']