From ef4332d89298c46c361e9f39939048887b0bc2d6 Mon Sep 17 00:00:00 2001 From: Oleksandr Shulgin Date: Mon, 14 Dec 2015 12:55:34 +0100 Subject: [PATCH] Fix dict syntax for python-2.6 in test_elb --- tests/test_elb/test_elb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_elb/test_elb.py b/tests/test_elb/test_elb.py index bd0a74df0..2a0c6f86f 100644 --- a/tests/test_elb/test_elb.py +++ b/tests/test_elb/test_elb.py @@ -711,7 +711,8 @@ def test_add_remove_tags(): 'Value': 'something' }]) - lb_tags = { l['LoadBalancerName']: { d['Key']: d['Value'] for d in l['Tags'] } for l in client.describe_tags(LoadBalancerNames=['my-lb', 'other-lb'])['TagDescriptions'] } + lb_tags = dict([(l['LoadBalancerName'], dict([(d['Key'], d['Value']) for d in l['Tags']])) + for l in client.describe_tags(LoadBalancerNames=['my-lb', 'other-lb'])['TagDescriptions']]) lb_tags.should.have.key('my-lb') lb_tags.should.have.key('other-lb')