mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-16 04:53:24 +00:00

Vendor in Pytest (2.9.2) and its requirement Py (1.4.31), so that it can be used for e.g. the Marionette harness unit tests and a pytest plugin for mozlog. Copy pytest and py package directories (extracted from tars on Pip) into `mozilla-central/python/`, removing some support files (e.g. changelog, docs, tests). Add both `.pth` entries to `virtualenv_packages.txt`. Add both paths to `SEARCH_PATHS` in `mach_bootstrap.py`. MozReview-Commit-ID: IOTCOUxX8R9 --HG-- extra : rebase_source : e03d8a4be084062c0055b365bcc18da6dbb0b7a7
12 lines
362 B
Python
12 lines
362 B
Python
"""
|
|
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
|