Use to_native_string instead of builtin_str

Fixes #2316
This commit is contained in:
Ian Cordasco
2014-10-31 21:20:04 -05:00
parent 091991be0d
commit 29ef108158
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -1389,6 +1389,11 @@ class TestTimeout:
except ConnectTimeout:
pass
def test_encoded_methods(self):
"""See: https://github.com/kennethreitz/requests/issues/2316"""
r = requests.request(b'GET', httpbin('get'))
assert r.ok
SendCall = collections.namedtuple('SendCall', ('args', 'kwargs'))