From: Mike Bayer Date: Sun, 5 Dec 2010 22:47:09 +0000 (-0500) Subject: callcounts... X-Git-Tag: rel_0_7b1~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15297eb4fba04225ec435c43a386af928365fc19;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git callcounts... --- diff --git a/test/aaa_profiling/test_orm.py b/test/aaa_profiling/test_orm.py index d82ac74364..093674d48e 100644 --- a/test/aaa_profiling/test_orm.py +++ b/test/aaa_profiling/test_orm.py @@ -53,7 +53,7 @@ class MergeTest(_base.MappedTest): # down from 185 on this this is a small slice of a usually # bigger operation so using a small variance - @profiling.function_call_count(97, variance=0.001, + @profiling.function_call_count(97, variance=0.05, versions={'2.4': 73, '3': 96}) def go(): return sess2.merge(p1, load=False) @@ -61,7 +61,7 @@ class MergeTest(_base.MappedTest): # third call, merge object already present. almost no calls. - @profiling.function_call_count(12, variance=0.001, + @profiling.function_call_count(12, variance=0.05, versions={'2.4': 8, '3': 13}) def go(): return sess2.merge(p2, load=False) diff --git a/test/aaa_profiling/test_pool.py b/test/aaa_profiling/test_pool.py index ea8d1f9cdd..a3c0f725e8 100644 --- a/test/aaa_profiling/test_pool.py +++ b/test/aaa_profiling/test_pool.py @@ -20,7 +20,7 @@ class QueuePoolTest(TestBase, AssertsExecutionResults): @profiling.function_call_count(72, {'2.4': 63, '2.7':67, '2.7+cextension':67, - '3.0':65, '3.1':65}, + '3.0':73, '3.1':73}, variance=.10) def test_first_connect(self): conn = pool.connect() diff --git a/test/aaa_profiling/test_resultset.py b/test/aaa_profiling/test_resultset.py index 8326a01f1d..da8653184d 100644 --- a/test/aaa_profiling/test_resultset.py +++ b/test/aaa_profiling/test_resultset.py @@ -53,7 +53,7 @@ class ExecutionTest(TestBase): c.execute("select 1") @profiling.function_call_count(36, versions={'2.6':35, '2.5':35, - '2.4':21}, + '2.4':21, '3':34}, variance=.05) def go(): c.execute("select 1") @@ -66,7 +66,7 @@ class ExecutionTest(TestBase): e.execute("select 1") @profiling.function_call_count(59, versions={'2.4':41, '2.5':58, - '2.6':58}, + '2.6':58, '3':57}, variance=.05) def go(): e.execute("select 1")