]> khamidou — GitHub mirrors - vcrpy.git/commit
Fix compat with requests 2.16 (unvendored urllib3)
authorKevin McCarthy <me@kevinmccarthy.org>
Sun, 28 May 2017 01:11:06 +0000 (15:11 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Sun, 28 May 2017 01:40:38 +0000 (15:40 -1000)
commit9b59e02374ab2d6de481bbd2d9f100ff3275c4ba
tree6371428e9a496c1a911c42407d76e483e6320d39
parentba290a32d2e9b9161994804bcdfe28df633d8982
Fix compat with requests 2.16 (unvendored urllib3)

The new version of requests un-vendors urllib3, with a nifty hack:
https://github.com/kennethreitz/requests/blob/master/requests/packages.py

Unfortunately messing directly with sys.modules causes some weird
behavior that I don't entirely understand.  Avoiding the extra import to
requests.packages as part of VCR's initialization seems to sidestep the
issue.

Closes #311
vcr/patch.py
vcr/stubs/requests_stubs.py