diff --git a/tests/integration/test_stubs.py b/tests/integration/test_stubs.py index b72aa63..b4cdd53 100644 --- a/tests/integration/test_stubs.py +++ b/tests/integration/test_stubs.py @@ -69,6 +69,6 @@ def test_original_decoded_response_is_not_modified(tmpdir, httpbin): # Even though the above are raw bytes, the JSON data should have been # decoded and saved to the cassette. with vcr.use_cassette(testfile): - inside2 = urlopen(request) - assert 'content-encoding' not in inside2.headers - assert_is_json(inside2.read()) + inside = urlopen(request) + assert 'content-encoding' not in inside.headers + assert_is_json(inside.read())