Use Python 2.6.x compatible syntax for dict comprehension
The dict comprehension syntax used here was added in 2.7. With minimal change it can be adjusted for Python 2.6.x Change-Id: I920c4a4181fdf5c696ba873224a2c07f09e914e4
This commit is contained in:
parent
03d6bf7cde
commit
b9a5715f5d
|
@ -164,7 +164,7 @@ class TestRestClientParseRespXML(BaseRestClientTestClass):
|
|||
|
||||
keys = ["fake_key1", "fake_key2"]
|
||||
values = ["fake_value1", "fake_value2"]
|
||||
item_expected = {key: value for key, value in zip(keys, values)}
|
||||
item_expected = dict((key, value) for (key, value) in zip(keys, values))
|
||||
list_expected = {"body_list": [
|
||||
{keys[0]: values[0]},
|
||||
{keys[1]: values[1]},
|
||||
|
|
Loading…
Reference in New Issue