Pylons / pyramid_tutorials

Tutorials for Pyramid
https://docs.pylonsproject.org/projects/pyramid/en/latest/
89 stars 63 forks source link

Update tests.py - fix for Python 3. #61

Closed ztane closed 9 years ago

ztane commented 10 years ago

response.body is a bytes object; TypeError: Type str doesn't support the buffer API in Python 3; changed to use response.text instead.

mmerickel commented 10 years ago

This is probably the correct approach. It's unfortunate that webob's response object doesn't allow setting a python 2 str to the text attribute or this would "Just Work" on both platforms.

ztane commented 10 years ago

Ahha, something that I did think would work without any question

stevepiercy commented 9 years ago

Fixed by #94

ztane commented 9 years ago

@stevepiercy yay :D