From: Chase Sterling Date: Mon, 8 Dec 2014 19:28:48 +0000 (-0500) Subject: Play back requests requests on windows. fix #116 X-Git-Tag: v1.1.3~3^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f6aa6eac84a29110e4f8a692c9a73f7b393f4696;p=vcrpy.git Play back requests requests on windows. fix #116 --- diff --git a/vcr/patch.py b/vcr/patch.py index aeabf1d..90c6c8a 100644 --- a/vcr/patch.py +++ b/vcr/patch.py @@ -136,6 +136,7 @@ class CassettePatcherBuilder(object): (cpool, 'VerifiedHTTPSConnection', VCRRequestsHTTPSConnection), (cpool, 'HTTPConnection', VCRRequestsHTTPConnection), (cpool, 'HTTPSConnection', VCRRequestsHTTPSConnection), + (cpool, 'is_connection_dropped', mock.Mock(return_value=False)), # Needed on Windows only (cpool.HTTPConnectionPool, 'ConnectionCls', VCRRequestsHTTPConnection), (cpool.HTTPSConnectionPool, 'ConnectionCls', VCRRequestsHTTPSConnection), )