From ffffe5411e501b64932560dd0236d8c528095a52 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 8 Jun 2014 10:34:01 +0100 Subject: [PATCH] Fix failing test on Python 3 --- wolframalpha/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolframalpha/__init__.py b/wolframalpha/__init__.py index 0c1b6fc..ca57430 100644 --- a/wolframalpha/__init__.py +++ b/wolframalpha/__init__.py @@ -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)