Fix pool size limit check for unlimited connection pools.
AS IS: acquiring a connection on a pool with minsize=0, maxsize=0 blocks forever.
AS EXPECTED: acquiring a connection on a pool with minsize=0, maxsize=0 returns a created connection.
Are there changes in behavior for the user?
These changes will allow to create a pool with settings minsize=0, maxsize=0.
What do these changes do?
Fix pool size limit check for unlimited connection pools. AS IS: acquiring a connection on a pool with
minsize=0, maxsize=0
blocks forever. AS EXPECTED: acquiring a connection on a pool withminsize=0, maxsize=0
returns a created connection.Are there changes in behavior for the user?
These changes will allow to create a pool with settings
minsize=0, maxsize=0
.Related issue number
https://github.com/aio-libs/aiopg/issues/311 - even though the
TypeError
has been fixed, it is still impossible to use a pool withminsize=0, maxsize=0
.Checklist
CHANGES
folder<issue_id>.<type>
(e.g.588.bugfix
)issue_id
change it to the pr id after creating the PR.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.Fix issue with non-ascii contents in doctest text files.