8000 gh-119506: fix `_io.TextIOWrapper.write()` write during flush by chgnrdv · Pull Request #119507 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-119506: fix _io.TextIOWrapper.write() write during flush #119507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jun 3, 2024
Merged
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
methane committed May 31, 2024
commit 2392d2087ba0dcb5d19bfc81747f4d77259321d5
2 changes: 1 addition & 1 deletion Lib/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -4030,7 +4030,7 @@ def write(self, data):
t.write("bcd")
t.flush()

self.assertEqual([b"a" * (chunk_size - 1), b"bcdefg"], buf._write_stack)
self.assertEqual([b"a" * (chunk_size - 1), b"efgbcd"], buf._write_stack)


class PyTextIOWrapperTest(TextIOWrapperTest):
Expand Down
0