summaryrefslogtreecommitdiff
path: root/lib/spack/external/_pytest/_pluggy.py
blob: 6cc1d3d54a657c4b660d15e0d476ad589ee5ef64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
"""
imports symbols from vendored "pluggy" if available, otherwise
falls back to importing "pluggy" from the default namespace.
"""
from __future__ import absolute_import, division, print_function
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