Skip to content

gh-150315: increase test coverage for asyncio._FlowControlMixin.set_write_buffer_limits#150317

Open
azibom wants to merge 1 commit into
python:mainfrom
azibom:asyncio-flowcontrol-tests
Open

gh-150315: increase test coverage for asyncio._FlowControlMixin.set_write_buffer_limits#150317
azibom wants to merge 1 commit into
python:mainfrom
azibom:asyncio-flowcontrol-tests

Conversation

@azibom
Copy link
Copy Markdown

@azibom azibom commented May 23, 2026

Adds test coverage for computed write buffer limit behavior in
asyncio._FlowControlMixin.

The new tests verify:

  • default computed limits: (16 * 1024, 64 * 1024)
  • high computed from low
  • low computed from high

These behaviors are implemented in _set_write_buffer_limits()
but were not explicitly covered by tests.

Tests help protect against future regressions in flow control
buffer calculations.

Closes gh-150315.

@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label May 23, 2026
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented May 23, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 23, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Comment on lines +125 to +127
transport.get_write_buffer_limits(),
(50, 200)
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those lines can be collapsed. It's taking too much vertical space (or are we already exceeding 80 chars in width?)

@picnixz picnixz changed the title gh-150315: Add tests for computed flow control write limitsAdd tests for computed flow control write limits gh-150315: increase test coverage for asyncio._FlowControlMixin.set_write_buffer_limits May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for computed write buffer limits in asyncio FlowControlMixin

2 participants