Browse Source

Use right lib with python 2.6 and pypy

pull/242/head
Florian Mounier 10 years ago
parent
commit
4fd9d0dcb9
  1. 4
      pygal/test/conftest.py

4
pygal/test/conftest.py

@ -39,6 +39,10 @@ def pytest_generate_tests(metafunc):
if sys.version_info[:2] != (2, 6): if sys.version_info[:2] != (2, 6):
if not etree._lxml_etree: if not etree._lxml_etree:
raise ImportError('lxml is required under python 2.6') 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: if "Chart" in metafunc.funcargnames:
metafunc.parametrize("Chart", pygal.CHARTS) metafunc.parametrize("Chart", pygal.CHARTS)

Loading…
Cancel
Save