From 5d552eba69e9655feefc79cf1aa5d73636d84a99 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 1 May 2019 09:49:08 +0100 Subject: [PATCH] Update test_sync.py --- tests/test_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!" -- 2.47.3