diff options
Diffstat (limited to 'lib/spack/external/pytest-fallback/_pytest/_pluggy.py')
-rw-r--r-- | lib/spack/external/pytest-fallback/_pytest/_pluggy.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/spack/external/pytest-fallback/_pytest/_pluggy.py b/lib/spack/external/pytest-fallback/_pytest/_pluggy.py new file mode 100644 index 0000000000..6cc1d3d54a --- /dev/null +++ b/lib/spack/external/pytest-fallback/_pytest/_pluggy.py @@ -0,0 +1,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 |