fix(standard-tests): serialize BytesIO bodies in VCR cassettes (#37963)

The custom VCR serializer pipes the cassette dict through
`yaml.safe_dump`, which raises on stream objects — so any request with
an `io.BytesIO` body (multipart/file-upload endpoints) couldn't be
recorded. A new `_coerce_bytesio` helper walks the cassette and replaces
each `BytesIO` with its raw bytes before dumping.
This commit is contained in:
Mason Daugherty
2026-06-08 11:17:12 -04:00
committed by GitHub
parent 4bd3b6ab64
commit f9f11527f6
2 changed files with 31 additions and 1 deletions

View File

@@ -324,7 +324,7 @@ wheels = [
[[package]]
name = "langchain-core"
version = "1.4.0"
version = "1.4.1"
source = { editable = "../core" }
dependencies = [
{ name = "jsonpatch" },