From: Tom Christie Date: Wed, 1 May 2019 08:49:08 +0000 (+0100) Subject: Update test_sync.py X-Git-Tag: 0.3.0~53^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d552eba69e9655feefc79cf1aa5d73636d84a99;p=thirdparty%2Fhttpx.git Update test_sync.py --- 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!"