]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Update test_sync.py 21/head
authorTom Christie <tom@tomchristie.com>
Wed, 1 May 2019 08:49:08 +0000 (09:49 +0100)
committerGitHub <noreply@github.com>
Wed, 1 May 2019 08:49:08 +0000 (09:49 +0100)
tests/test_sync.py

index 43561a3d95927dd72eb99276357e58f903cf3a94..e78077594a150be19d5ef40f399e501fff89c9f7 100644 (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!"