From fc175f4b4d4f3dfcad8e34169f84e572d2c3c033 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sun, 10 Nov 2024 10:40:26 +0000 Subject: [PATCH] avoid unused local variable --- tests/test_chunked_response.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_chunked_response.py b/tests/test_chunked_response.py index 2fbe6b5..077bc66 100644 --- a/tests/test_chunked_response.py +++ b/tests/test_chunked_response.py @@ -50,7 +50,6 @@ def test_stream_is_cached(self, url, sess): assert content_1 == content_2 def test_stream_is_not_cached_when_content_is_not_read(self, url, sess): - with sess.get(url + "stream", stream=True) as r1: + with sess.get(url + "stream", stream=True): with sess.get(url + "stream", stream=True) as resp: - assert not resp.from_cache