You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the various tutorials test functions, the returned data is always accessed as if it was a str. In python 3.3, the results are binary, so they must be decoded:
Instead of:
assert "Some string" in rv.data
use:
assert "Some string" in rv.data.decode('utf-8')
(there are other ways too - encode the string constant, etc.).
The text was updated successfully, but these errors were encountered:
In the various tutorials test functions, the returned data is always accessed as if it was a str. In python 3.3, the results are binary, so they must be decoded:
Instead of:
assert "Some string" in rv.data
use:
assert "Some string" in rv.data.decode('utf-8')
(there are other ways too - encode the string constant, etc.).
The text was updated successfully, but these errors were encountered: