diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-22 16:25:13 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-22 16:25:13 -0500 |
commit | 9c69bd4f29fdf07b79f1a49c7a3ff0eba1a78bce (patch) | |
tree | fac41e9e2a663603aaf0157bfc932cccead38856 /igor.py | |
parent | 4e501a92d24e262d0d488f0f5d4b96b28b604d48 (diff) | |
download | python-coveragepy-git-9c69bd4f29fdf07b79f1a49c7a3ff0eba1a78bce.tar.gz |
Install pytest in the main venv
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -20,6 +20,8 @@ import textwrap import warnings import zipfile +import pytest + # We want to see all warnings while we are running tests. But we also need to # disable warnings for some of the more complex setting up of tests. warnings.simplefilter("default") @@ -95,8 +97,6 @@ def should_skip(tracer): def run_tests(tracer, *runner_args): """The actual running of tests.""" - import pytest - if 'COVERAGE_TESTING' not in os.environ: os.environ['COVERAGE_TESTING'] = "True" print_banner(label_for_tracer(tracer)) @@ -105,8 +105,6 @@ def run_tests(tracer, *runner_args): def run_tests_with_coverage(tracer, *runner_args): """Run tests, but with coverage.""" - import pytest - # Need to define this early enough that the first import of env.py sees it. os.environ['COVERAGE_TESTING'] = "True" os.environ['COVERAGE_PROCESS_START'] = os.path.abspath('metacov.ini') |