mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Make strings in DummyServer test bytestrings
This commit is contained in:
+2
-2
@@ -1740,8 +1740,8 @@ def test_vendor_aliases():
|
||||
|
||||
class TestDummyServer(unittest.TestCase):
|
||||
def test_basic(self):
|
||||
question = "sucess?"
|
||||
answer = "yeah, success"
|
||||
question = b"sucess?"
|
||||
answer = b"yeah, success"
|
||||
def handler(server_sock):
|
||||
sock, _ = server_sock.accept()
|
||||
text = sock.recv(1000)
|
||||
|
||||
Reference in New Issue
Block a user