Skip to content

Commit

Permalink
Use right lib with python 2.6 and pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Jul 10, 2015
1 parent 2ddf8b5 commit 4fd9d0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pygal/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fd9d0d

Please sign in to comment.