What's Changed
- Don't open a real connection for HTTPS requests played back from a cassette in the
new_episodesrecord mode. urllib3 connects before sending a request, before vcrpy knows whether it will be played back, so every such request made a TLS handshake, and failed without network access (#515, #1086) - Raise a clear
TypeErrorwhenuse_cassette()without a path is used as a context manager, instead ofKeyError: 'path'. A path can be left out only when decorating a function (#570) - Fix
filter_post_data_parameterscrashing withAttributeErroron iterator request bodies, e.g. a generator passed asdata. Like file bodies, they're left unfiltered (#814) - Docs: document
inject_cassette, which passes the cassette to a decorated function, e.g. to rewind it or make assertions (#207, #493)
Full Changelog: v9.3.1...v9.3.2