summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-30 13:09:42 +0000
committerGerrit Code Review <review@openstack.org>2015-04-30 13:09:42 +0000
commit0b2e1a70e9feb28f8f7104eacee7a988b5727b7c (patch)
tree7d46de92a91c92e6ccd350c96ff8d64fde8d3159
parent8cd4564254a7123adf315400f9775a642d80d9b9 (diff)
parent0e70cdfd6d40519e0e4981421f1e6c407ce9c21e (diff)
downloadoslo-db-0b2e1a70e9feb28f8f7104eacee7a988b5727b7c.tar.gz
Merge "Update to latest hacking"
-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 c6fa44d..5addb2b 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 7301186..d760873 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