diff --git a/runtests.sh b/runtests.sh index 99cc970..15fa202 100755 --- a/runtests.sh +++ b/runtests.sh @@ -4,4 +4,4 @@ # If you are getting an INVOCATION ERROR for this script then there is # a good chance you are running on Windows. # You can and should use WSL for running tox on Windows when it calls bash scripts. -REQUESTS_CA_BUNDLE=`python -m pytest_httpbin.certs` py.test $* +REQUESTS_CA_BUNDLE=`python -m pytest_httpbin.certs` pytest $* diff --git a/vcr/stubs/httpx_stubs.py b/vcr/stubs/httpx_stubs.py index a22502c..0a9fd0e 100644 --- a/vcr/stubs/httpx_stubs.py +++ b/vcr/stubs/httpx_stubs.py @@ -52,7 +52,6 @@ def _from_serialized_response(request, serialized_response, history=None): response = httpx.Response( status_code=serialized_response.get("status_code"), request=request, - http_version=serialized_response.get("http_version"), headers=_from_serialized_headers(serialized_response.get("headers")), content=content, history=history or [],