summaryrefslogtreecommitdiff
path: root/tests/db_pool_test.py
Commit message (Collapse)AuthorAgeFilesLines
* tests: db_pool: test .clear() updates .current_size GH-139Sergey Shepelev2014-12-211-42/+58
|
* PEP-8 fixesSergey Shepelev2014-08-271-6/+6
|
* tests: deprecated TestCase.assert_() -> assert keywordSergey Shepelev2014-07-161-15/+15
| | | | https://github.com/eventlet/eventlet/issues/101
* db_pool: customizable connection cleanup function; Thanks to Avery FaySergey Shepelev2014-07-101-12/+63
| | | | | | | | | https://github.com/eventlet/eventlet/pull/64 Also: - PEP8 - except Exception - .put() must not catch SystemExit
* python3 compatibilitySergey Shepelev2014-04-241-30/+30
| | | | | | | | | | | | - __next__ for iterator interface - six.next() to get next item - list(dict.keys()) - popen2.popen4 -> subprocess - s2b -> b"..." literals - deprecated assertEquals -> assertEqual - hub_test test_fork using run_python - 1L -> 1 long literal - many PEP-8 fixes
* pypy compatibilityJakub Stasiak2014-04-151-4/+5
|
* python3 compat fixesVictor Sergeyev2014-03-281-3/+4
| | | | https://github.com/eventlet/eventlet/pull/59
* python3 compat: print() function syntaxSergey Shepelev2013-12-031-7/+7
|
* tpool: proxy __enter__, __exit__ fixes BB-158; Thanks to Eric UrbanSergey Shepelev2013-10-021-3/+16
| | | | https://bitbucket.org/eventlet/eventlet/issue/158/eventlet-pooled-psycopg2-connections-wont
* db_pool: Fix pool.put() TypeError with min_size > 1; Thanks to Jessica QiSergey Shepelev2012-12-131-0/+28
| | | | https://bitbucket.org/which_linden/eventlet/issue/125
* Fix db_pool .clear() when min_size > 0Sergey Shepelev2011-10-121-4/+10
|
* Integrated the dotfile auth lookup stuff with the new test.Ryan Williams2010-04-171-24/+2
|
* Reordered database droppage because the tests just got bitten by some old ↵Ryan Williams2010-02-261-2/+3
| | | | test databases that were kicking around on the test machine.
* Need to pop this.Ryan Williams2010-02-251-0/+1
|
* hide db_pool_test mysql failure crap unless ↵Tavis Rudd2010-02-241-4/+7
| | | | os.environ.get("eventlet_test_mysql_verbose")
* fix the skip print notices in mysql_requirement so they are actually visible ↵Tavis Rudd2010-02-241-60/+75
| | | | on stderr when run from nose (plus some stuff pyflakes recommended and a few cosmetic ws and line-len changes)
* Imported Timeout class from gevent, deprecated exc_after, replaced ↵Ryan Williams2010-02-151-17/+17
| | | | TimeoutError with Timeout (should be seamless).
* Using pid-named databases now, so that multiple tests running on the same ↵Ryan Williams2010-02-071-9/+20
| | | | machine don't stomp on each other. Lots of little cleanup, too, to account for the fact that postgres doesn't let you delete a database with an open connection.
* Tweaked db_pool tests so tpool tests aren't run alongside pyevent. Caught ↵Ryan Williams2010-02-071-6/+5
| | | | by the continuous build!
* Extended tpool's autowrap functionality to use the name of the attribute, ↵Ryan Williams2010-02-061-66/+143
| | | | which is a lot cleaner than type-checking (which is still supported). Added psycopg tests to db_pool tests.
* Fixed a buncha things noticed during a code review.Ryan Williams2010-01-181-6/+7
|
* Renamed coros.event to coros.Event to be compatible with PEP-8 some more.Ryan Williams2009-12-161-5/+5
|
* Removed saranwrap as an option for making db connections nonblocking in ↵Ryan Williams2009-12-151-23/+2
| | | | db_pool. Trying to keep changelog updated with my changes.
* Fixes to make tests pass on python2.4. The tricks to make with-statement ↵Ryan Williams2009-12-031-4/+4
| | | | stuff work even when imported by 2.4 are especially tricky, but there doesn't seem to be a better alternative.
* Added eventlet.green.OpenSSL to further rationalize our SSL support, carved ↵Ryan Williams2009-11-271-2/+2
| | | | off ssl tests into ssl_test.py, and added some docs on coverage.
* Removed copyright headers from individual files, added LICENSE and AUTHORS ↵Ryan Williams2009-10-031-23/+2
| | | | files to give credit instead. Linked authors list into documentation.
* Added cool little debug mode to Hub which makes it easier to see why a ↵Ryan Williams2009-08-241-0/+1
| | | | particular fileno is in the hub by recording the traceback of when the fileno was added. Enable this mode by doing api.get_hub().debug = True. Tweaked tpool so that it only starts up its thread pool when you actually call execute(). I think this is not a performance hit and it will make it somewhat nicer to use. Some other randomc changes like more explicit package name in test_named so it passes when called from within nose.
* Moved some copy-and-paste test code into stdlib and did the monkeypatching ↵Ryan Williams2009-08-241-18/+35
| | | | thing on it. Improved nose-friendliness of dbpool and tpool tests.
* Added @skipped decorator in tests, hopefully we don't use it too much. ↵Ryan Williams2009-08-151-8/+15
| | | | Replaced a bunch of skipped-by-renaming tests with @skipped decorator. Removed the silly timing-sensitive test in processes_test.py.
* Renamed greentest to tests to be more standard.Ryan Williams2009-07-241-0/+547