From 49dfeda6d7578aeae9ec954945cda38ee5aae6a9 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 27 Jan 2016 14:23:33 -0500 Subject: - restore the use of PYTHONNOUSERSITE that was removed in df3f125bd84fc7ec5d45592c5774daf3a39d9bc9, this flag is explicitly checked within conftest.py and we need to continue to use it, otherwise a tox build inside of .tox that isn't usedevelop is ignored, including C extensions - rework the whole system of running with coverage, so that with coverage, we *are* using usedevelop, but also make sure we rm the .so files for nocext, make sure we --cov-append, etc. --- test/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/conftest.py b/test/conftest.py index 36dfaa792..9488a7159 100755 --- a/test/conftest.py +++ b/test/conftest.py @@ -10,6 +10,11 @@ import sys import os if not sys.flags.no_user_site: + # this is needed so that test scenarios like "python setup.py test" + # work correctly, as well as plain "py.test". These commands assume + # that the package in question is locally present, but since we have + # ./lib/, we need to punch that in. + # We check no_user_site to honor the use of this flag. sys.path.insert( 0, os.path.join( @@ -28,3 +33,4 @@ with open(bootstrap_file) as f: to_bootstrap = "pytest" exec(code, globals(), locals()) from pytestplugin import * # noqa + -- cgit v1.2.1