Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
Fix python3.4 segmentation fault
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Mar 24, 2015
1 parent f442c98 commit c59a346
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cliquet/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ def test_raises_backenderror_when_remote_returns_500(self):
error_response = requests.models.Response()
error_response.status_code = 500
error_response._content_consumed = True
error_response._content = 'Internal Error'
error_response._content = u'Internal Error'.encode('utf8')
mocked.return_value = error_response
self.assertRaises(exceptions.BackendError,
self.storage.get_all,
Expand Down
2 changes: 1 addition & 1 deletion cliquet/tests/test_views_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def test_subrequests_body_have_utf8_charset(self):
self.post({'requests': [request]})
subrequest, = self.request.invoke_subrequest.call_args[0]
self.assertIn('charset=utf-8', subrequest.headers['Content-Type'])
wanted = {"json": u"\ud83d\ude02"}
wanted = {"json": u"😂"}
self.assertEqual(subrequest.body.decode('utf8'),
json.dumps(wanted))

Expand Down

0 comments on commit c59a346

Please sign in to comment.