diff --git a/tests/test_sync.py b/tests/test_sync.py index 43561a3d..e7807759 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -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!"