Update test_sync.py

This commit is contained in:
Tom Christie 2019-05-01 09:49:08 +01:00 committed by GitHub
parent 20bc1f3530
commit 5d552eba69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!"