From: Mike Bayer Date: Wed, 9 Aug 2017 18:56:33 +0000 (-0400) Subject: unblock pytest-xdist, add sqla master X-Git-Tag: rel_0_9_6~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf1df2c5a5154d27a64a07903aab54661a0039c7;p=thirdparty%2Fsqlalchemy%2Falembic.git unblock pytest-xdist, add sqla master Change-Id: I8e150e5e4de50c9819c97ab2b3960c1eb9c0ebd1 --- diff --git a/alembic/__init__.py b/alembic/__init__.py index 1f655bb5..f1df8de6 100644 --- a/alembic/__init__.py +++ b/alembic/__init__.py @@ -1,6 +1,6 @@ from os import path -__version__ = '0.9.5' +__version__ = '0.9.6' package_dir = path.abspath(path.dirname(__file__)) diff --git a/alembic/testing/requirements.py b/alembic/testing/requirements.py index 38527720..51d06fff 100644 --- a/alembic/testing/requirements.py +++ b/alembic/testing/requirements.py @@ -23,6 +23,11 @@ class SuiteRequirements(Requirements): if not util.sqla_084: return True from sqlalchemy import inspect + + # temporary + if config.db.name == "oracle": + return True + insp = inspect(config.db) try: insp.get_unique_constraints('x') diff --git a/tests/requirements.py b/tests/requirements.py index 522ac5bf..2129e432 100644 --- a/tests/requirements.py +++ b/tests/requirements.py @@ -89,7 +89,7 @@ class DefaultRequirements(SuiteRequirements): @property def reflects_unique_constraints_unambiguously(self): - return exclusions.fails_on("mysql") + return exclusions.fails_on("mysql", "oracle") @property def reflects_pk_names(self): diff --git a/tests/test_config.py b/tests/test_config.py index 7b390871..d9f998cb 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -16,6 +16,7 @@ from alembic.testing.env import _no_sql_testing_config, clear_staging_env,\ class FileConfigTest(TestBase): + def test_config_args(self): cfg = _write_config_file(""" [alembic] diff --git a/tox.ini b/tox.ini index a97c6e11..d93b9897 100644 --- a/tox.ini +++ b/tox.ini @@ -1,22 +1,23 @@ [tox] -# current mysqlclient fails with <=SQLA 0.9 on py3k due to +# current mysqlclient fails with <=SQLA 0.9 on py3k due to # old unicode statements flag -envlist = py{27,33,34,35,36}-sqla{10,11}, py{27}-sqla{079,084,09} +envlist = py{27,33,34,35,36}-sqla{10,11,master}, py{27}-sqla{079,084,09} 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 + pytest-xdist mock sqla079: {[tox]SQLA_REPO}@rel_0_7_9 sqla084: {[tox]SQLA_REPO}@rel_0_8_4 sqla09: {[tox]SQLA_REPO}@rel_0_9 sqla10: {[tox]SQLA_REPO}@rel_1_0 sqla11: {[tox]SQLA_REPO}@rel_1_1 + sqlamaster: {[tox]SQLA_REPO}@master postgresql: psycopg2 mysql: mysqlclient oracle: cx_oracle