Skip to content
Myr

Make strings in DummyServer test bytestrings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Braulio Valdivielso Martínez · committed by Braulio Valdivielso Martínez · parent 9a2cc99 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:test_requests.py+2 added-2 removed
1738 unmodified lines
1739 from requests.packages import webbrowser17401741class TestDummyServer(unittest.TestCase):1742 def test_basic(self):1743 question = "sucess?"1744 answer = "yeah, success"1743 question = b"sucess?"1744 answer = b"yeah, success"1745 def handler(server_sock):1746 sock, _ = server_sock.accept()1747 text = sock.recv(1000)1748 assert text == question
12 unmodified lines