_pluggy.py 362 B

123456789101112
  1. """
  2. imports symbols from vendored "pluggy" if available, otherwise
  3. falls back to importing "pluggy" from the default namespace.
  4. """
  5. try:
  6. from _pytest.vendored_packages.pluggy import * # noqa
  7. from _pytest.vendored_packages.pluggy import __version__ # noqa
  8. except ImportError:
  9. from pluggy import * # noqa
  10. from pluggy import __version__ # noqa