-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Fix CapacityLimiter memory leak. #576
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a newsfragment
Otherwise lgtm
Btw, if you phrase your commit message/PR description slightly differently – like "closes #XX" or "fixes #XX" – GitHub will automatically close the issue when the PR is merged. Not a big deal in any one case, but a good habit to get into.
trio/tests/test_sync.py
Outdated
|
||
async with _core.open_nursery() as n: | ||
n.start_soon(limiter.acquire) | ||
await _core.checkpoint() # give it a chance to run the task |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more robust way to do this is wait_all_tasks_blocked
.
Codecov Report
@@ Coverage Diff @@
## master #576 +/- ##
==========================================
+ Coverage 99.27% 99.27% +<.01%
==========================================
Files 89 89
Lines 10628 10647 +19
Branches 747 747
==========================================
+ Hits 10551 10570 +19
Misses 59 59
Partials 18 18
Continue to review full report at Codecov.
|
This closes issue #548.
Also an excuse to force the tests to re-run so I can merge this.
Closing/reopening to tickle travis, hopefully clear #584 failures. |
Closes #548.