]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Correctly patch HTTPConnection.request in Python 3.6
authorDerek Bekoe <debekoe@microsoft.com>
Mon, 23 Jan 2017 22:54:26 +0000 (14:54 -0800)
committerDerek Bekoe <debekoe@microsoft.com>
Mon, 23 Jan 2017 22:54:26 +0000 (14:54 -0800)
Fixes https://github.com/kevin1024/vcrpy/issues/293

vcr/stubs/__init__.py

index 451824384f356e0b96c2b8bba6d89964c7dd2b53..c12e1947869c36ca21f59e5661d7e7726c3864f8 100644 (file)
@@ -153,7 +153,7 @@ class VCRConnection(object):
         )
         return uri.replace(prefix, '', 1)
 
-    def request(self, method, url, body=None, headers=None):
+    def request(self, method, url, body=None, headers=None, *args, **kwargs):
         '''Persist the request metadata in self._vcr_request'''
         self._vcr_request = Request(
             method=method,