def with_generator(name):
gens = [getattr(common, name)]<EOL>if not PY2:<EOL><INDENT>from . import py3<EOL>gens.append(getattr(py3, name))<EOL><DEDENT>return pytest.mark.parametrize(name, gens)<EOL>
use a python 2/3 parametrized generator