1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 09:13:23 +00:00

requests 2.3 compat

This commit is contained in:
Kevin McCarthy
2014-05-17 12:51:47 -10:00
parent 0c1f1e2479
commit 70abc5058c
3 changed files with 83 additions and 34 deletions

View File

@@ -285,6 +285,9 @@ class VCRConnection:
self.real_connection.sock = value
def __init__(self, *args, **kwargs):
if six.PY3:
kwargs.pop('strict', None) # apparently this is gone in py3
# need to temporarily reset here because the real connection
# inherits from the thing that we are mocking out. Take out
# the reset if you want to see what I mean :)