From 4fd9d0dcb9e081bcdd9945160d1d9ef7ed1f3af0 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Fri, 10 Jul 2015 16:13:02 +0200 Subject: [PATCH] Use right lib with python 2.6 and pypy --- pygal/test/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pygal/test/conftest.py b/pygal/test/conftest.py index 6cf8643..55f5d6c 100644 --- a/pygal/test/conftest.py +++ b/pygal/test/conftest.py @@ -39,6 +39,10 @@ def pytest_generate_tests(metafunc): if sys.version_info[:2] != (2, 6): if not etree._lxml_etree: raise ImportError('lxml is required under python 2.6') + etree.to_lxml() + + if hasattr(sys, 'pypy_version_info'): + etree.to_etree() if "Chart" in metafunc.funcargnames: metafunc.parametrize("Chart", pygal.CHARTS)