diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-08-04 10:29:57 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-08-04 10:29:57 -0400 |
commit | 50307867048f3cf567eea907ab824b52a3858bbb (patch) | |
tree | a8f459d0b3712667e8a904f6aea6200a7817c5d5 | |
parent | 101136605150d50fe0a3b6e7bc6c2ad90bbeb9df (diff) | |
download | alembic-reproduce_pytest_196.tar.gz |
Reproducer for https://github.com/pytest-dev/pytest-xdist/issues/196#issuecomment-320262736reproduce_pytest_196
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
-rw-r--r-- | tests/test_postgresql.py | 4 | ||||
-rw-r--r-- | 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( @@ -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 |