I did see the link but didn't really catch the second issue, thanks for pointing it out. I've pushed a new rev which adds cx_pool._ident.get() to the test before doing the asserts on cx_pool.sockets and this appears to fix both of these tests with Python 2.7.1 on my machine. On Python 2.6.8 I'm still seeing what you mention above, leaked fails and redundant hangs. Looks like I need to re-add my debug output and see if I can track down Python 2.6's issue.

Do you have any idea if Python 2.5/2.4 are going to have any other issues? :-(