<gh_stars>10-100
import pytest

from validx import py  # noqa

try:
    from validx import cy  # noqa
except ImportError:
    pass


@pytest.fixture(params=[m for m in ("py", "cy") if m in globals()])
def module(request):
    result = globals()[request.param]
    yield result
    result.instances.clear()

import pytest

from validx import py  # noqa

try:
    from validx import cy  # noqa
except ImportError:
    pass


@pytest.fixture(params=[m for m in ("py", "cy") if m in globals()])
def module(request):
    result = globals()[request.param]
    yield result
    result.instances.clear()
# noqa # noqa