{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-python-client/issues/125","labels_url":"https://api.github.com/repos/google/google-api-python-client/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-python-client/issues/125/comments","events_url":"https://api.github.com/repos/google/google-api-python-client/issues/125/events","html_url":"https://github.com/google/google-api-python-client/pull/125","id":100890036,"number":125,"title":"Force HttpMock to read content from file as bytes","user":{"login":"alanbriolat","id":12193,"avatar_url":"https://avatars.githubusercontent.com/u/12193?v=3","gravatar_id":"","url":"https://api.github.com/users/alanbriolat","html_url":"https://github.com/alanbriolat","followers_url":"https://api.github.com/users/alanbriolat/followers","following_url":"https://api.github.com/users/alanbriolat/following{/other_user}","gists_url":"https://api.github.com/users/alanbriolat/gists{/gist_id}","starred_url":"https://api.github.com/users/alanbriolat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanbriolat/subscriptions","organizations_url":"https://api.github.com/users/alanbriolat/orgs","repos_url":"https://api.github.com/users/alanbriolat/repos","events_url":"https://api.github.com/users/alanbriolat/events{/privacy}","received_events_url":"https://api.github.com/users/alanbriolat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/google-api-python-client/labels/cla:%20no","name":"cla: no","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-13T23:20:26Z","updated_at":"2015-08-13T23:24:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/google-api-python-client/pulls/125","html_url":"https://github.com/google/google-api-python-client/pull/125","diff_url":"https://github.com/google/google-api-python-client/pull/125.diff","patch_url":"https://github.com/google/google-api-python-client/pull/125.patch"},"body":"Fixes #124.\r\n\r\nI decided to write the test for the functionality I was actually trying to use, and which was previously not covered by tests: using ``HttpMock`` specifically to mock error responses. The side effect is that it exposes how ``HttpMock`` was not not reading content as bytes on Python 3 and causing a confusing exception to be thrown.\r\n\r\nI think the fix speaks for itself..."},"comment":{"url":"https://api.github.com/repos/google/google-api-python-client/issues/comments/130878606","html_url":"https://github.com/google/google-api-python-client/pull/125#issuecomment-130878606","issue_url":"https://api.github.com/repos/google/google-api-python-client/issues/125","id":130878606,"user":{"login":"googlebot","id":5384588,"avatar_url":"https://avatars.githubusercontent.com/u/5384588?v=3","gravatar_id":"","url":"https://api.github.com/users/googlebot","html_url":"https://github.com/googlebot","followers_url":"https://api.github.com/users/googlebot/followers","following_url":"https://api.github.com/users/googlebot/following{/other_user}","gists_url":"https://api.github.com/users/googlebot/gists{/gist_id}","starred_url":"https://api.github.com/users/googlebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlebot/subscriptions","organizations_url":"https://api.github.com/users/googlebot/orgs","repos_url":"https://api.github.com/users/googlebot/repos","events_url":"https://api.github.com/users/googlebot/events{/privacy}","received_events_url":"https://api.github.com/users/googlebot/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T23:24:32Z","updated_at":"2015-08-13T23:24:32Z","body":"CLAs look good, thanks!\n\n<!-- ok -->"}}