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