• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agronholm / anyio / 27972812691
93%

Build:
DEFAULT BRANCH: master
Ran 22 Jun 2026 05:53PM UTC
Jobs 1
Files 43
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jun 2026 05:51PM UTC coverage: 93.271% (+0.01%) from 93.257%
27972812691

push

github

web-flow
Allow 0 tokens in a CapacityLimiter instantiated outside an event loop (#1183)

PR #1019 allowed setting a CapacityLimiter's total tokens to 0 (released in 4.12), updating both the docstring and the asyncio backend setter. However, the CapacityLimiterAdapter.total_tokens setter - used whenever a CapacityLimiter is instantiated outside of a running event loop - was missed and still rejected 0 with "total_tokens must be >= 1".

This made CapacityLimiter(0) and limiter.total_tokens = 0 raise ValueError when created outside an event loop, contradicting the documented behavior.

Align the adapter setter with the backend setter (value < 0) and add a regression test covering the outside-event-loop path.

1 of 2 new or added lines in 1 file covered. (50.0%)

6529 of 7000 relevant lines covered (93.27%)

11.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
84.4
0.0% src/anyio/_core/_synchronization.py
Jobs
ID Job ID Ran Files Coverage
1 27972812691.1 22 Jun 2026 05:53PM UTC 43
93.27
GitHub Action Run
Source Files on build 27972812691
  • Tree
  • List 43
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27972812691
  • 3ceb6ffb on github
  • Prev Build on master (#27742486837)
  • Next Build on master (#28007230494)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc