diff options
Diffstat (limited to 'python/pytest/_pytest/_pluggy.py')
-rw-r--r-- | python/pytest/_pytest/_pluggy.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python/pytest/_pytest/_pluggy.py b/python/pytest/_pytest/_pluggy.py new file mode 100644 index 000000000..87d32cf8d --- /dev/null +++ b/python/pytest/_pytest/_pluggy.py @@ -0,0 +1,11 @@ +""" +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 |