Merge "Fix test_migrate_cli for py3"
This commit is contained in:
commit
b60b3fe7bf
@ -22,8 +22,10 @@ class MockWithCmp(mock.MagicMock):
|
||||
|
||||
order = 0
|
||||
|
||||
def __cmp__(self, other):
|
||||
return self.order > other.order
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(MockWithCmp, self).__init__(*args, **kwargs)
|
||||
|
||||
self.__lt__ = lambda self, other: self.order < other.order
|
||||
|
||||
|
||||
@mock.patch(('oslo.db.sqlalchemy.migration_cli.'
|
||||
|
Loading…
x
Reference in New Issue
Block a user