diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-27 14:23:33 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-27 14:23:33 -0500 |
| commit | 49dfeda6d7578aeae9ec954945cda38ee5aae6a9 (patch) | |
| tree | 7cc804636c19e96ec885c23744febe52e143dfb3 /test/conftest.py | |
| parent | 8aa95fa2cd0e15b77af3e5976436adc6ed6123b9 (diff) | |
| download | sqlalchemy-49dfeda6d7578aeae9ec954945cda38ee5aae6a9.tar.gz | |
- 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.
Diffstat (limited to 'test/conftest.py')
| -rwxr-xr-x | test/conftest.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 + |
