Mypal/python/pytest/_pytest/_pluggy.py

12 lines
362 B
Python
Raw Normal View History

2019-03-11 03:26:37 -07:00
"""
imports symbols from vendored "pluggy" if available, otherwise
falls back to importing "pluggy" from the default namespace.
"""
try:
from _pytest.vendored_packages.pluggy import * # noqa
from _pytest.vendored_packages.pluggy import __version__ # noqa
except ImportError:
from pluggy import * # noqa
from pluggy import __version__ # noqa