Fix test failure on Python 2
This commit is contained in:
parent
56d015694c
commit
5d697ade21
|
@ -4,6 +4,8 @@ from __future__ import unicode_literals
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import wolframalpha
|
import wolframalpha
|
||||||
|
@ -68,7 +70,7 @@ def test_properties(temp_result):
|
||||||
def test_pod_attributes(temp_result):
|
def test_pod_attributes(temp_result):
|
||||||
pod = next(temp_result.pods)
|
pod = next(temp_result.pods)
|
||||||
assert isinstance(pod.position, float)
|
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)
|
assert isinstance(pod.subpod[0].img[0].height, int)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user