Skip to content

gh-150315: Add tests for computed flow control write limitsAdd tests for computed flow control write limits#150317

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

gh-150315: Add tests for computed flow control write limitsAdd tests for computed flow control write 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review 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

1 participant