mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
patch: Save requests...HTTPSConnection
so that we unpatch back to the correct class in reset(). Closes #59
This commit is contained in:
@@ -13,6 +13,7 @@ try:
|
|||||||
import requests.packages.urllib3.connectionpool as cpool
|
import requests.packages.urllib3.connectionpool as cpool
|
||||||
_VerifiedHTTPSConnection = cpool.VerifiedHTTPSConnection
|
_VerifiedHTTPSConnection = cpool.VerifiedHTTPSConnection
|
||||||
_HTTPConnection = cpool.HTTPConnection
|
_HTTPConnection = cpool.HTTPConnection
|
||||||
|
_HTTPSConnection = cpool.HTTPSConnection
|
||||||
except ImportError: # pragma: no cover
|
except ImportError: # pragma: no cover
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user