diff options
-rw-r--r-- | oslo_db/sqlalchemy/enginefacade.py | 1 | ||||
-rw-r--r-- | oslo_db/sqlalchemy/exc_filters.py | 1 | ||||
-rw-r--r-- | oslo_db/sqlalchemy/utils.py | 1 | ||||
-rw-r--r-- | oslo_db/tests/sqlalchemy/base.py | 1 | ||||
-rw-r--r-- | test-requirements.txt | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
6 files changed, 6 insertions, 2 deletions
diff --git a/oslo_db/sqlalchemy/enginefacade.py b/oslo_db/sqlalchemy/enginefacade.py index b56883f..6a13c70 100644 --- a/oslo_db/sqlalchemy/enginefacade.py +++ b/oslo_db/sqlalchemy/enginefacade.py @@ -1076,6 +1076,7 @@ class _TransactionContextManager(object): def async_compat(self): return self.async_ + setattr( _TransactionContextManager, "async", async_compat diff --git a/oslo_db/sqlalchemy/exc_filters.py b/oslo_db/sqlalchemy/exc_filters.py index 2d9b162..b4325a5 100644 --- a/oslo_db/sqlalchemy/exc_filters.py +++ b/oslo_db/sqlalchemy/exc_filters.py @@ -427,6 +427,7 @@ def _raise_for_all_others(error, match, engine_name, is_disconnect): LOG.warn('DB exception wrapped.', exc_info=True) raise exception.DBError(error) + ROLLBACK_CAUSE_KEY = 'oslo.db.sp_rollback_cause' diff --git a/oslo_db/sqlalchemy/utils.py b/oslo_db/sqlalchemy/utils.py index b7e101e..d1499f0 100644 --- a/oslo_db/sqlalchemy/utils.py +++ b/oslo_db/sqlalchemy/utils.py @@ -1026,6 +1026,7 @@ class DialectMultiFunctionDispatcher(DialectFunctionDispatcher): "Return value not allowed for " "multiple filtered function") + dispatch_for_dialect = DialectFunctionDispatcher.dispatch_for_dialect diff --git a/oslo_db/tests/sqlalchemy/base.py b/oslo_db/tests/sqlalchemy/base.py index e07b45c..9d8cf35 100644 --- a/oslo_db/tests/sqlalchemy/base.py +++ b/oslo_db/tests/sqlalchemy/base.py @@ -25,6 +25,7 @@ from oslotest import base as test_base class Context(object): pass + context = Context() diff --git a/test-requirements.txt b/test-requirements.txt index 26e7f56..4fc397b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,7 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=1.1.0,<1.2.0 # Apache-2.0 +hacking>=3.0,<3.1.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 eventlet!=0.18.3,!=0.20.1,>=0.18.2 # MIT fixtures>=3.0.0 # Apache-2.0/BSD @@ -63,7 +63,7 @@ commands = [flake8] # E123, E125 skipped as they are invalid PEP-8. -ignore = E123,E125 +ignore = E123,E125,W504 show-source = True exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |