From 50307867048f3cf567eea907ab824b52a3858bbb Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 4 Aug 2017 10:29:57 -0400 Subject: Reproducer for https://github.com/pytest-dev/pytest-xdist/issues/196#issuecomment-320262736 Two tests in test_postgresql.py intentionally fail under SQLAlchemy < 1.1, illustrating the pytest-xdist crash. Run as: tox -e py27-sqla10-sqlite -- tests/test_postgresql.py Change-Id: I2811f54a0143c4dd132f072b3bc96d4f0f6088d8 --- tests/test_postgresql.py | 4 ++-- tox.ini | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py index e52b555..dadb4b9 100644 --- a/tests/test_postgresql.py +++ b/tests/test_postgresql.py @@ -69,7 +69,7 @@ class PostgresqlOpTest(TestBase): "CREATE INDEX geocoded ON locations (coordinates) " "WHERE locations.coordinates != Null") - @config.requirements.fail_before_sqla_110 + # should fail with SQLAlchemy < 1.1 def test_create_index_postgresql_concurrently(self): context = op_fixture("postgresql") op.create_index( @@ -80,7 +80,7 @@ class PostgresqlOpTest(TestBase): context.assert_( "CREATE INDEX CONCURRENTLY geocoded ON locations (coordinates)") - @config.requirements.fail_before_sqla_110 + # should fail with SQLAlchemy < 1.1 def test_drop_index_postgresql_concurrently(self): context = op_fixture("postgresql") op.drop_index( diff --git a/tox.ini b/tox.ini index a97c6e1..c8a3c3e 100644 --- a/tox.ini +++ b/tox.ini @@ -9,8 +9,8 @@ SQLA_REPO = {env:SQLA_REPO:git+http://git.sqlalchemy.org/sqlalchemy.git} [testenv] cov_args=--cov=alembic --cov-report term --cov-report xml -deps=pytest<=3.0.7 - pytest-xdist<=1.16.0 +deps=pytest==3.2.0 + pytest-xdist==1.18.2 mock sqla079: {[tox]SQLA_REPO}@rel_0_7_9 sqla084: {[tox]SQLA_REPO}@rel_0_8_4 -- cgit v1.2.1