kombu/t
Alex Hill f246a66bed Prevent spurious exception on Resource.resize(0) (#826)
* Prevent spurious exception on Resource.resize(0)

`Resource.resize()` raises an exception if the pool is in use and the new size is smaller than the old size. However, it also raises this exception when the new size is zero, which should correspond to disabling the pool. Instead of shrinking the pool to zero and releasing all resources, we can simply dequeue all resources and forget about them.

* Add test for removing pool limit when in use
2018-04-08 12:06:02 +06:00
..
integration Removed an always true if-check in t/integration/transport.py (#827) 2018-01-27 11:22:49 +02:00
unit Prevent spurious exception on Resource.resize(0) (#826) 2018-04-08 12:06:02 +06:00
__init__.py Rewrite tests to use py.test 2016-08-23 11:38:54 -07:00
mocks.py Prefer dict literal syntax over dict() (#787) 2017-09-08 07:43:59 +03:00