mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 18:01:44 -10: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
11 lines
222 B
Python
11 lines
222 B
Python
import sys
|
|
if __name__ == '__main__':
|
|
import pytest
|
|
sys.exit(pytest.main())
|
|
else:
|
|
import sys, pytest
|
|
sys.modules['py.test'] = pytest
|
|
|
|
# for more API entry points see the 'tests' definition
|
|
# in __init__.py
|