From 5d697ade21e449f76689e35a6858f8675f388c18 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 3 Sep 2016 14:31:29 -0400 Subject: [PATCH] Fix test failure on Python 2 --- wolframalpha/test_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolframalpha/test_client.py b/wolframalpha/test_client.py index b8c7f92..7889bf1 100644 --- a/wolframalpha/test_client.py +++ b/wolframalpha/test_client.py @@ -4,6 +4,8 @@ from __future__ import unicode_literals import os +import six + import pytest import wolframalpha @@ -68,7 +70,7 @@ def test_properties(temp_result): def test_pod_attributes(temp_result): pod = next(temp_result.pods) assert isinstance(pod.position, float) - assert isinstance(pod.id, str) + assert isinstance(pod.id, six.text_type) assert isinstance(pod.subpod[0].img[0].height, int)