Repository navigation
Commit 9e0377c
gh-71448: Test BytesIO.truncate() failure on shared and private buffers
The loop wrote to both streams first, so neither started shared, and
which path the second size took depended on the build: getvalue()
leaves the buffer shared on free-threading (sticky buf_shared) but not
on the default build once its result is dropped. Use a fresh shared
and private stream for each size.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent b0b473f commit 9e0377c
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
608 | 609 | | |
609 | 610 | | |
610 | 611 | | |
611 | | - | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| |||
0 commit comments