Skip to content

Commit

Permalink
Fix conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Jul 10, 2015
1 parent 4fd9d0d commit 626acd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pygal/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def pytest_generate_tests(metafunc):
if etree._lxml_etree and sys.version_info[:2] != (2, 6):
metafunc.fixturenames.append('etreefx')
metafunc.parametrize('etreefx', ['lxml', 'etree'], indirect=True)
if sys.version_info[:2] != (2, 6):

if sys.version_info[:2] != (2, 6) and not hasattr(
sys, 'pypy_version_info'):
if not etree._lxml_etree:
raise ImportError('lxml is required under python 2.6')
etree.to_lxml()
Expand Down

0 comments on commit 626acd7

Please sign in to comment.