No native dict comprehensions in py26.

This commit is contained in:
Steve Pulec 2015-02-14 12:21:53 -05:00
parent 57e268791e
commit 556394c68e

View File

@ -364,7 +364,7 @@ def test_cluster_tagging():
cluster = conn.describe_cluster(cluster_id)
cluster.tags.should.have.length_of(2)
tags = {tag.key: tag.value for tag in cluster.tags}
tags = dict((tag.key, tag.value) for tag in cluster.tags)
tags['tag1'].should.equal('val1')
tags['tag2'].should.equal('val2')
@ -372,5 +372,5 @@ def test_cluster_tagging():
conn.remove_tags(cluster_id, ["tag1"])
cluster = conn.describe_cluster(cluster_id)
cluster.tags.should.have.length_of(1)
tags = {tag.key: tag.value for tag in cluster.tags}
tags = dict((tag.key, tag.value) for tag in cluster.tags)
tags['tag2'].should.equal('val2')