summaryrefslogtreecommitdiff
path: root/test/aaa_profiling/test_pool.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-09 16:08:48 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-09 16:08:48 -0400
commit442237afaada6785b6a94d2453d8b180b7f318ca (patch)
treee17ab627f488072d1cc81e6d7f355de4e59d9cd2 /test/aaa_profiling/test_pool.py
parentdbe540d899443c721f5c20e12ef15bc348569a6b (diff)
downloadsqlalchemy-442237afaada6785b6a94d2453d8b180b7f318ca.tar.gz
- a new approach to profiling where we attempt to strip out
parts of the pstats that are idiosyncratic to different platforms. the goal is no per-version assertions on tests, version differences in theory would go into the list of profiling exceptions.
Diffstat (limited to 'test/aaa_profiling/test_pool.py')
-rw-r--r--test/aaa_profiling/test_pool.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/aaa_profiling/test_pool.py b/test/aaa_profiling/test_pool.py
index 27967884f..da4196549 100644
--- a/test/aaa_profiling/test_pool.py
+++ b/test/aaa_profiling/test_pool.py
@@ -32,10 +32,7 @@ class QueuePoolTest(fixtures.TestBase, AssertsExecutionResults):
# probably
# due to the event mechanics being established
# or not already...
- @profiling.function_call_count(72, {'2.4': 68, '2.7':75,
- '2.7+cextension':75,
- '3':62},
- variance=.15)
+ @profiling.function_call_count(72, variance=.15)
def test_first_connect(self):
conn = pool.connect()
@@ -43,10 +40,7 @@ class QueuePoolTest(fixtures.TestBase, AssertsExecutionResults):
conn = pool.connect()
conn.close()
- @profiling.function_call_count(32, {'2.4': 21, '2.7':29,
- '3.2':25,
- '2.7+cextension':29},
- variance=.10)
+ @profiling.function_call_count(29, variance=.10)
def go():
conn2 = pool.connect()
return conn2
@@ -55,7 +49,7 @@ class QueuePoolTest(fixtures.TestBase, AssertsExecutionResults):
def test_second_samethread_connect(self):
conn = pool.connect()
- @profiling.function_call_count(6, {'2.4': 4, '3':7})
+ @profiling.function_call_count(6)
def go():
return pool.connect()
c2 = go()