Update test_sync.py
This commit is contained in:
parent
20bc1f3530
commit
5d552eba69
@ -52,7 +52,7 @@ def test_stream_iterator(server):
|
||||
with httpcore.SyncConnectionPool() as http:
|
||||
response = http.request("GET", "http://127.0.0.1:8000/", stream=True)
|
||||
assert response.status_code == 200
|
||||
content = b""
|
||||
body = b""
|
||||
for chunk in response.stream():
|
||||
body += chunk
|
||||
assert body == b"Hello, world!"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user