-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
byte arrays don't have an encode() method, and in Python 2 it doesn't make sense to call encode() on a str either. The mocks on this function were returning incorrect types in Python 3 (a str instead of a byte). This commit fixes the mocks to return correct types in both Python versions, and fixes the composer so that it does not try to call encode() on those responses. fixes #2746 Signed-off-by: Randy Barlow <[email protected]> (cherry picked from commit fa5524c)
- Loading branch information
1 parent
a36922d
commit c1172d6
Showing
2 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters