summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-03-09 12:26:30 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-03-09 13:05:46 -0400
commitfdd2b42db59c9a37c609217f3bbee99e53b3403e (patch)
tree942c8cb0d3db2e4a8affa2893b8b8516ef1b380f
parenta421106c9d1d660af7c5d9aba5928dda20c950e1 (diff)
downloadsqlalchemy-fdd2b42db59c9a37c609217f3bbee99e53b3403e.tar.gz
- 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
-rw-r--r--regen_callcounts.tox.ini28
-rwxr-xr-xsqla_nose.py4
-rwxr-xr-xtest/conftest.py3
3 files changed, 31 insertions, 4 deletions
diff --git a/regen_callcounts.tox.ini b/regen_callcounts.tox.ini
new file mode 100644
index 000000000..056208ca6
--- /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 b977f4bf5..fc55f34f7 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 c697085ee..590b35700 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))