Fix failing test on Python 3
This commit is contained in:
parent
00458d7b43
commit
ffffe5411e
|
@ -65,6 +65,6 @@ class Client(object):
|
|||
))
|
||||
url = 'http://api.wolframalpha.com/v2/query?' + query
|
||||
resp = urllib_request.urlopen(url)
|
||||
assert resp.headers.gettype() == 'text/xml'
|
||||
assert resp.headers.getparam('charset') == 'utf-8'
|
||||
assert resp.headers.get_content_type() == 'text/xml'
|
||||
assert resp.headers.get_param('charset') == 'utf-8'
|
||||
return Result(resp)
|
||||
|
|
Loading…
Reference in New Issue
Block a user