Skip to content
Discussion options

You must be logged in to vote

I think your analysis is right -- the reason the test doesn't catch this is that for values <256 there's a small buffer allocated inline in the PyBytesWriter, and the test case's data fits within that:

fn test_io_write_vectored() {

If you extended that to write 1Kb of data it'd fail.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cdhowie
Comment options

@alex
Comment options

alex Mar 24, 2026
Collaborator

@cdhowie
Comment options

Answer selected by cdhowie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants