summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-04-02 18:13:53 +0000
committerJason Kirtland <jek@discorporate.us>2008-04-02 18:13:53 +0000
commit0359a6a13dbe02b680e14cd830206544206153b8 (patch)
tree74c13cb43229909dfc5646b7d22efcecf63cf247
parentd9dce78a3bf0b2e95157e1e85b69d67af55965ab (diff)
downloadsqlalchemy-0359a6a13dbe02b680e14cd830206544206153b8.tar.gz
- Re-tuned call counts for 2.3 through 2.5.
-rw-r--r--test/profiling/compiler.py2
-rw-r--r--test/profiling/zoomark.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/test/profiling/compiler.py b/test/profiling/compiler.py
index 1960a1cb6..7062a7e29 100644
--- a/test/profiling/compiler.py
+++ b/test/profiling/compiler.py
@@ -23,7 +23,7 @@ class CompileTest(TestBase, AssertsExecutionResults):
def test_update(self):
t1.update().compile()
- @profiling.function_call_count(120, versions={'2.3': 180, '2.4':123})
+ @profiling.function_call_count(120, versions={'2.3': 153, '2.4':116})
def test_select(self):
s = select([t1], t1.c.c2==t2.c.c1)
s.compile()
diff --git a/test/profiling/zoomark.py b/test/profiling/zoomark.py
index f2e9f8bc8..1606b8103 100644
--- a/test/profiling/zoomark.py
+++ b/test/profiling/zoomark.py
@@ -12,6 +12,8 @@ from testlib import *
ITERATIONS = 1
+# Use with conditional_call_count() if VM state of a full-suite run
+# throws off profiling numbers.
_run_type = 'suite'
_running_in = lambda: _run_type
@@ -26,9 +28,7 @@ class ZooMarkTest(testing.TestBase, AssertsExecutionResults):
__only_on__ = 'postgres'
__skip_if__ = ((lambda: sys.version_info < (2, 4)), )
- @profiling.conditional_call_count(
- _running_in, {'isolation': (2038,),
- 'suite': (1569, {'2.4': 1579}, 0.20)})
+ @profiling.function_call_count(2028)
def test_1_create_tables(self):
global metadata
metadata = MetaData(testing.db)