]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
patch: Save requests...HTTPSConnection
authorMarc Abramowitz <marc@marc-abramowitz.com>
Tue, 4 Feb 2014 18:30:29 +0000 (10:30 -0800)
committerMarc Abramowitz <marc@marc-abramowitz.com>
Tue, 4 Feb 2014 18:30:29 +0000 (10:30 -0800)
so that we unpatch back to the correct class in reset().

Closes #59

vcr/patch.py

index e77e75922818c5483513893366948932adc482f2..78cd0a1d9fde1f6cf0927a5ad7f3b9214faee798 100644 (file)
@@ -13,6 +13,7 @@ try:
     import requests.packages.urllib3.connectionpool as cpool
     _VerifiedHTTPSConnection = cpool.VerifiedHTTPSConnection
     _HTTPConnection = cpool.HTTPConnection
+    _HTTPSConnection = cpool.HTTPSConnection
 except ImportError:  # pragma: no cover
     pass