summaryrefslogtreecommitdiff
path: root/oslo_db
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2015-04-03 13:58:39 +0000
committerDoug Hellmann <doug@doughellmann.com>2015-04-03 18:32:16 +0000
commit0e70cdfd6d40519e0e4981421f1e6c407ce9c21e (patch)
tree9661414e425b82a608b5fe4c49d5f2860e745381 /oslo_db
parentf749ad436288841f9df5af284966b2b1c639e428 (diff)
downloadoslo-db-0e70cdfd6d40519e0e4981421f1e6c407ce9c21e.tar.gz
Update to latest hacking
Update to the version of hacking used in kilo and fix class declarations that cause the new version to report errors. Change-Id: I69c4976a2d611a19675cd5919d498abda7856a88
Diffstat (limited to 'oslo_db')
-rw-r--r--oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py10
-rw-r--r--oslo_db/tests/sqlalchemy/test_sqlalchemy.py10
2 files changed, 10 insertions, 10 deletions
diff --git a/oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py b/oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py
index 3b65205..d1f10b7 100644
--- a/oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py
+++ b/oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py
@@ -167,21 +167,21 @@ class SQLiteSavepointTest(test_base.DbTestCase):
)
-class FakeDBAPIConnection():
+class FakeDBAPIConnection(object):
def cursor(self):
return FakeCursor()
-class FakeCursor():
+class FakeCursor(object):
def execute(self, sql):
pass
-class FakeConnectionProxy():
+class FakeConnectionProxy(object):
pass
-class FakeConnectionRec():
+class FakeConnectionRec(object):
pass
@@ -195,7 +195,7 @@ class ProgrammingError(Exception):
class FakeDB2Engine(object):
- class Dialect():
+ class Dialect(object):
def is_disconnect(self, e, *args):
expected_error = ('SQL30081N: DB2 Server connection is no longer '
diff --git a/oslo_db/tests/sqlalchemy/test_sqlalchemy.py b/oslo_db/tests/sqlalchemy/test_sqlalchemy.py
index 433affe..516acb6 100644
--- a/oslo_db/tests/sqlalchemy/test_sqlalchemy.py
+++ b/oslo_db/tests/sqlalchemy/test_sqlalchemy.py
@@ -167,21 +167,21 @@ class SQLiteSavepointTest(test_base.DbTestCase):
)
-class FakeDBAPIConnection():
+class FakeDBAPIConnection(object):
def cursor(self):
return FakeCursor()
-class FakeCursor():
+class FakeCursor(object):
def execute(self, sql):
pass
-class FakeConnectionProxy():
+class FakeConnectionProxy(object):
pass
-class FakeConnectionRec():
+class FakeConnectionRec(object):
pass
@@ -195,7 +195,7 @@ class ProgrammingError(Exception):
class FakeDB2Engine(object):
- class Dialect():
+ class Dialect(object):
def is_disconnect(self, e, *args):
expected_error = ('SQL30081N: DB2 Server connection is no longer '