py33: sort dict for test_add_floating_ip_to_fixed
In Python 3, hash randomization is enabled by default. It causes the iteration order of dicts and sets to be unpredictable and differ across Python runs. Sort the list and update the expecting result. Close-Bug #1233406 Change-Id: Ib747824dad340534d484797afb87b5e92200e426
This commit is contained in:
parent
2ab334435f
commit
f7462f14a4
@ -544,8 +544,8 @@ class FakeHTTPClient(base_client.HTTPClient):
|
||||
assert list(body[action]) == ['address']
|
||||
elif action == 'addFloatingIp':
|
||||
assert (list(body[action]) == ['address'] or
|
||||
list(body[action]) == ['fixed_address',
|
||||
'address'])
|
||||
sorted(list(body[action])) == ['address',
|
||||
'fixed_address'])
|
||||
elif action == 'removeFloatingIp':
|
||||
assert list(body[action]) == ['address']
|
||||
elif action == 'createImage':
|
||||
|
Loading…
x
Reference in New Issue
Block a user