1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 09:13:23 +00:00

Casting to BufferedReader no longer needed in test

This commit is contained in:
Matt Ghantous
2023-06-05 23:47:47 -04:00
parent 0add77d5ae
commit 5476dd010c

View File

@@ -93,7 +93,7 @@ def test_response_parses_correctly_and_fp_attribute_error_is_not_thrown():
}, },
} }
vcr_response = VCRHTTPResponse(recorded_response) vcr_response = VCRHTTPResponse(recorded_response)
handle = io.TextIOWrapper(io.BufferedReader(vcr_response), encoding="utf-8") handle = io.TextIOWrapper(vcr_response, encoding="utf-8")
handle = iter(handle) handle = iter(handle)
articles = [line for line in handle] articles = [line for line in handle]
assert len(articles) > 1 assert len(articles) > 1