From: Mike Bayer Date: Mon, 9 Mar 2015 16:26:30 +0000 (-0400) Subject: - we really don't want to force lib here, but we do need X-Git-Tag: rel_1_0_0b1~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdd2b42db59c9a37c609217f3bbee99e53b3403e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - we really don't want to force lib here, but we do need it for the plain "pytest" case, so do an append instead of an insert - add a new tox file to do a full regen of callcounts --- diff --git a/regen_callcounts.tox.ini b/regen_callcounts.tox.ini new file mode 100644 index 0000000000..056208ca67 --- /dev/null +++ b/regen_callcounts.tox.ini @@ -0,0 +1,28 @@ +[tox] +envlist = py{27,33,34}-sqla_{cext,nocext}-db_{sqlite,postgresql,mysql} + +[base] +basecommand= + python -m pytest test/aaa_profiling -k "not memusage" --force-write-profiles + +[testenv] +deps=pytest + mock + py{27,33,34}-sqla_{cext,nocext}-db_{postgresql}: psycopg2 + py{27}-sqla_{cext,nocext}-db_{mysql}: mysql-python + py{33,34}-sqla_{cext,nocext}-db_{mysql}: pymysql + +usedevelop=False +sitepackages=True + + +commands= + py{27}-sqla_{cext,nocext}-db_{mysql}: {[base]basecommand} --db mysql {posargs} + py{33,34}-sqla_{cext,nocext}-db_{mysql}: {[base]basecommand} --db pymysql {posargs} + db_{postgresql}: {[base]basecommand} --db postgresql {posargs} + db_{sqlite}: {[base]basecommand} --db sqlite {posargs} + +setenv= + sqla_nocext: DISABLE_SQLALCHEMY_CEXT=1 + + diff --git a/sqla_nose.py b/sqla_nose.py index b977f4bf56..fc55f34f78 100755 --- a/sqla_nose.py +++ b/sqla_nose.py @@ -12,8 +12,8 @@ import os for pth in ['./lib']: - sys.path.insert( - 0, os.path.join(os.path.dirname(os.path.abspath(__file__)), pth)) + sys.path.append( + os.path.join(os.path.dirname(os.path.abspath(__file__)), pth)) # use bootstrapping so that test plugins are loaded # without touching the main library before coverage starts diff --git a/test/conftest.py b/test/conftest.py index c697085ee9..590b357005 100755 --- a/test/conftest.py +++ b/test/conftest.py @@ -10,8 +10,7 @@ import sys import os for pth in ['../lib']: - sys.path.insert( - 0, + sys.path.append( os.path.join(os.path.dirname(os.path.abspath(__file__)), pth))