mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 01:25:34 +00:00
Add force reset around calls to actual connection from stubs, to ensure
compatibility with version of httplib/urlib2 in python 2.7.9. Closes #130.
This commit is contained in:
@@ -236,6 +236,10 @@ class VCRConnection(object):
|
|||||||
self._vcr_request
|
self._vcr_request
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
# This is imported here to avoid circular import.
|
||||||
|
# TODO(@IvanMalison): Refactor to allow normal import.
|
||||||
|
from vcr.patch import force_reset
|
||||||
|
with force_reset():
|
||||||
self.real_connection.request(
|
self.real_connection.request(
|
||||||
method=self._vcr_request.method,
|
method=self._vcr_request.method,
|
||||||
url=self._url(self._vcr_request.uri),
|
url=self._url(self._vcr_request.uri),
|
||||||
|
|||||||
Reference in New Issue
Block a user