Fix failing test on Python 3

This commit is contained in:
Jason R. Coombs 2014-06-08 10:34:01 +01:00
parent 00458d7b43
commit ffffe5411e

View File

@ -65,6 +65,6 @@ class Client(object):
)) ))
url = 'http://api.wolframalpha.com/v2/query?' + query url = 'http://api.wolframalpha.com/v2/query?' + query
resp = urllib_request.urlopen(url) resp = urllib_request.urlopen(url)
assert resp.headers.gettype() == 'text/xml' assert resp.headers.get_content_type() == 'text/xml'
assert resp.headers.getparam('charset') == 'utf-8' assert resp.headers.get_param('charset') == 'utf-8'
return Result(resp) return Result(resp)