From 0922f91c3332c627d816d21fae4743bafaf32c34 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Wed, 17 Aug 2016 22:13:55 -0700 Subject: [PATCH] Fixed Python3 test assertions --- graphene/types/tests/test_query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/types/tests/test_query.py b/graphene/types/tests/test_query.py index 14cd9fa7..60a331b6 100644 --- a/graphene/types/tests/test_query.py +++ b/graphene/types/tests/test_query.py @@ -69,7 +69,7 @@ def test_big_list_query_benchmark(benchmark): big_list_query = partial(hello_schema.execute, '{ allInts }') result = benchmark(big_list_query) assert not result.errors - assert result.data == {'allInts': big_list} + assert result.data == {'allInts': list(big_list)} def test_big_list_query_compiled_query_benchmark(benchmark): @@ -88,7 +88,7 @@ def test_big_list_query_compiled_query_benchmark(benchmark): big_list_query = partial(execute, hello_schema, query_ast) result = benchmark(big_list_query) assert not result.errors - assert result.data == {'allInts': big_list} + assert result.data == {'allInts': list(big_list)} def test_big_list_of_containers_query_benchmark(benchmark):