From 27095638d9a28a7434f7a956c1907203fd22eac5 Mon Sep 17 00:00:00 2001 From: "Riccardo M. Cefala" Date: Wed, 15 Jun 2016 10:41:34 +0200 Subject: [PATCH] map() returns a map object iterable instead of a list in python3 --- tests/test_ecs/test_ecs_boto3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ecs/test_ecs_boto3.py b/tests/test_ecs/test_ecs_boto3.py index 9ca367e0..2c6617d7 100644 --- a/tests/test_ecs/test_ecs_boto3.py +++ b/tests/test_ecs/test_ecs_boto3.py @@ -446,7 +446,7 @@ def test_describe_container_instances(): test_instance_arns.append(response['containerInstance']['containerInstanceArn']) - test_instance_ids = map((lambda x: x.split('/')[1]), test_instance_arns) + test_instance_ids = list(map((lambda x: x.split('/')[1]), test_instance_arns)) response = ecs_client.describe_container_instances(cluster=test_cluster_name, containerInstances=test_instance_ids) len(response['failures']).should.equal(0) len(response['containerInstances']).should.equal(instance_to_create)