summaryrefslogtreecommitdiff
path: root/alembic/testing/exclusions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-07-03 13:10:41 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-07-03 13:10:41 -0400
commit0e43247da4cfd2d829ee4b350e336364cb8a7ec1 (patch)
treeb98e97333832e8db5f3c983f42771a2c15936ccc /alembic/testing/exclusions.py
parent5ccc81701c08a482efa4b7080ca88608fd237130 (diff)
downloadalembic-0e43247da4cfd2d829ee4b350e336364cb8a7ec1.tar.gz
- squash merge of ticket_302 branch
- The internal system for Alembic operations has been reworked to now build upon an extensible system of operation objects. New operations can be added to the ``op.`` namespace, including that they are available in custom autogenerate schemes. fixes #302 - The internal system for autogenerate been reworked to build upon the extensible system of operation objects present in #302. A new customization hook process_revision_directives is added to allow manipulation of the autogen stream. Fixes #301
Diffstat (limited to 'alembic/testing/exclusions.py')
-rw-r--r--alembic/testing/exclusions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alembic/testing/exclusions.py b/alembic/testing/exclusions.py
index 88df9fc..90f8bc6 100644
--- a/alembic/testing/exclusions.py
+++ b/alembic/testing/exclusions.py
@@ -14,11 +14,12 @@ from .plugin.plugin_base import SkipTest
from sqlalchemy.util import decorator
from . import config
from sqlalchemy import util
-from alembic import compat
+from ..util import compat
import inspect
import contextlib
from .compat import get_url_driver_name, get_url_backend_name
+
def skip_if(predicate, reason=None):
rule = compound()
pred = _as_predicate(predicate, reason)