summaryrefslogtreecommitdiff
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
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
-rw-r--r--oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py10
-rw-r--r--oslo_db/tests/sqlalchemy/test_sqlalchemy.py10
-rw-r--r--test-requirements-py2.txt2
-rw-r--r--test-requirements-py3.txt2
4 files changed, 12 insertions, 12 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 '
diff --git a/test-requirements-py2.txt b/test-requirements-py2.txt
index 24c3b46..3c2e500 100644
--- a/test-requirements-py2.txt
+++ b/test-requirements-py2.txt
@@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-hacking>=0.9.2,<0.10
+hacking>=0.10.0,<0.11
coverage>=3.6
discover
diff --git a/test-requirements-py3.txt b/test-requirements-py3.txt
index 6ca989c..1392111 100644
--- a/test-requirements-py3.txt
+++ b/test-requirements-py3.txt
@@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-hacking>=0.9.2,<0.10
+hacking>=0.10.0,<0.11
coverage>=3.6
discover