diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-12-08 11:18:38 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-12-08 11:18:38 -0500 |
| commit | 6b9f62df10e1b1f557b9077613e5e96a08427460 (patch) | |
| tree | f0aba759858af0210a38a9b5126385b4d8d1c698 /lib/sqlalchemy/testing | |
| parent | 902c8d480beebb69e09ee613fe51579c3fd2ce0d (diff) | |
| download | sqlalchemy-6b9f62df10e1b1f557b9077613e5e96a08427460.tar.gz | |
- force the _has_events flag to True on engines, so that
profiling is more predictable
- restore the profiling from before this change
Diffstat (limited to 'lib/sqlalchemy/testing')
| -rw-r--r-- | lib/sqlalchemy/testing/engines.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/engines.py b/lib/sqlalchemy/testing/engines.py index 7d73e7423..444a79b70 100644 --- a/lib/sqlalchemy/testing/engines.py +++ b/lib/sqlalchemy/testing/engines.py @@ -215,6 +215,9 @@ def testing_engine(url=None, options=None): options = config.db_opts engine = create_engine(url, **options) + engine._has_events = True # enable event blocks, helps with + # profiling + if isinstance(engine.pool, pool.QueuePool): engine.pool._timeout = 0 engine.pool._max_overflow = 0 |
