summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-08-14 12:04:26 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-08-14 12:41:58 -0400
commit2c594da2148bf15bcb8e10fc9616bbacc70b61a3 (patch)
tree1f49132bc5baa25d665325c4ff3d73ba69da2154 /tox.ini
parentbb9d511e52ee5ab3621d8595328ee2400242461a (diff)
downloadsqlalchemy-2c594da2148bf15bcb8e10fc9616bbacc70b61a3.tar.gz
Isolate memory tests in forks
Swing the biggest hammer, run multiprocessing.Process() for each memusage test individually so that they are fully isolated from the parent process and any side effects of pytest-xdist Also add --nomemory as a shortcut to exclude_tags=memory-intensive and add this to the setup.py test runner as the memory tests should not be running for quick runs Change-Id: I3c16c781e21b33deb939a64e77a6e0e41fb86922
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 2 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 2c7c4d7e9..5f306a430 100644
--- a/tox.ini
+++ b/tox.ini
@@ -50,12 +50,11 @@ setenv=
WORKERS={env:WORKERS:-n4}
oracle: WORKERS={env:WORKERS:-n2}
nocext: DISABLE_SQLALCHEMY_CEXT=1
- nomemory: NOMEMORY=--exclude-tag memory-intensive
cov: COVERAGE={[testenv]cov_args}
sqlite: SQLITE={env:SQLITE:--db sqlite}
postgresql: POSTGRESQL={env:POSTGRESQL:--db postgresql}
mysql: MYSQL={env:MYSQL:--db mysql --db pymysql}
- oracle: ORACLE={env:ORACLE:--db oracle} --write-idents oracle_idents.txt --exclude-tag memory-intensive
+ oracle: ORACLE={env:ORACLE:--db oracle} --write-idents oracle_idents.txt --nomemory
mssql: MSSQL={env:MSSQL:--db pyodbc --db pymssql}
backendonly: BACKENDONLY=--backend-only
@@ -67,7 +66,7 @@ passenv=ORACLE_HOME NLS_LANG POSTGRESQL MYSQL ORACLE MSSQL SQLITE WORKERS
# for nocext, we rm *.so in lib in case we are doing usedevelop=True
commands=
{nocext}: sh -c "rm -f lib/sqlalchemy/*.so"
- {env:BASECOMMAND} {env:WORKERS} {env:SQLITE:} {env:POSTGRESQL:} {env:MYSQL:} {env:ORACLE:} {env:MSSQL:} {env:BACKENDONLY:} {env:NOMEMORY:} {env:COVERAGE:} {posargs}
+ {env:BASECOMMAND} {env:WORKERS} {env:SQLITE:} {env:POSTGRESQL:} {env:MYSQL:} {env:ORACLE:} {env:MSSQL:} {env:BACKENDONLY:} {env:COVERAGE:} {posargs}
{oracle}: python reap_oracle_dbs.py oracle_idents.txt