summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-09-26 21:05:53 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-09-27 22:22:57 -0400
commit8690940976544f368dad31cfbc46d9e1426b2ce1 (patch)
tree345bc5036efed496025f41ac822d6103c8136c63 /tox.ini
parentbcc3c1ac3237970070cff26c48c1c28d5df33f27 (diff)
downloadalembic-8690940976544f368dad31cfbc46d9e1426b2ce1.tar.gz
Support pytest 6.x
pytest has removed support for pytest.Class(..parent) and we need to use from_parent. Also works around new issue for 6.1.0 References: https://github.com/pytest-dev/pytest/issues/7807 Change-Id: Ia5fed9b22e76c99f71489283acee207f996f52a4
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index ed233ee..f144754 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,7 +7,7 @@ SQLA_REPO = {env:SQLA_REPO:git+https://github.com/sqlalchemy/sqlalchemy.git}
[testenv]
cov_args=--cov=alembic --cov-report term --cov-report xml
-deps=pytest!=3.9.1,!=3.9.2
+deps=pytest>4.6
pytest-xdist
mock
sqla11: {[tox]SQLA_REPO}@rel_1_1
@@ -30,7 +30,7 @@ usedevelop=
# only use --dropfirst option if we're *not* using -n;
# if -n is used, we're working in brand new DBs anyway
setenv=
- BASECOMMAND=python -m pytest
+ BASECOMMAND=python -m pytest --rootdir {toxinidir}
WORKERS=-n4
sqla079: WORKERS=--dropfirst
cov: COVERAGE={[testenv]cov_args}