]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
adjustments
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Aug 2012 06:57:25 +0000 (02:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Aug 2012 06:57:25 +0000 (02:57 -0400)
test/aaa_profiling/test_compiler.py
test/aaa_profiling/test_orm.py
test/aaa_profiling/test_resultset.py
test/aaa_profiling/test_zoomark.py
test/aaa_profiling/test_zoomark_orm.py
test/lib/profiling.py

index caa782c3a6beb27ce3387f7c6d6e7d42bcc47e8a..129d0bf06cd19b53867993d41b5a8567043bc6b6 100644 (file)
@@ -46,7 +46,7 @@ class CompileTest(fixtures.TestBase, AssertsExecutionResults):
     def test_update_whereclause(self):
         t1.update().where(t1.c.c2==12).compile(dialect=self.dialect)
 
-    @profiling.function_call_count(148)
+    @profiling.function_call_count(139)
     def test_select(self):
         s = select([t1], t1.c.c2==t2.c.c1)
         s.compile(dialect=self.dialect)
index 83351d6b88b3dd2764046df3d33f7e661a62b243..4981530689cd41c1ab4930da18a0e087b842f582 100644 (file)
@@ -85,7 +85,7 @@ class MergeTest(fixtures.MappedTest):
         # using sqlite3 the C extension took it back up to approx. 1257
         # (py2.6)
 
-        @profiling.function_call_count(1128, variance=0.10)
+        @profiling.function_call_count(1016, variance=.10)
         def go():
             p2 = sess2.merge(p1)
         go()
index 29db46ef4f0b6257720a4cdc6caa57f8dc14e28b..4cd21338991f6ae22980decce5fa0e750c505feb 100644 (file)
@@ -34,11 +34,11 @@ class ResultSetTest(fixtures.TestBase, AssertsExecutionResults):
     def teardown(self):
         metadata.drop_all()
 
-    @profiling.function_call_count(336)
+    @profiling.function_call_count(316)
     def test_string(self):
         [tuple(row) for row in t.select().execute().fetchall()]
 
-    @profiling.function_call_count(336)
+    @profiling.function_call_count(316)
     def test_unicode(self):
         [tuple(row) for row in t2.select().execute().fetchall()]
 
index a254ff15f46447f634843fef71bec24433532c43..45e83c1b642b318db79a83d273c16ae82040c31d 100644 (file)
@@ -369,7 +369,7 @@ class ZooMarkTest(fixtures.TestBase):
     def test_profile_1_create_tables(self):
         self.test_baseline_1_create_tables()
 
-    @profiling.function_call_count(4377)
+    @profiling.function_call_count(4200)
     def test_profile_1a_populate(self):
         self.test_baseline_1a_populate()
 
@@ -377,11 +377,11 @@ class ZooMarkTest(fixtures.TestBase):
     def test_profile_2_insert(self):
         self.test_baseline_2_insert()
 
-    @profiling.function_call_count(2837)
+    @profiling.function_call_count(2700)
     def test_profile_3_properties(self):
         self.test_baseline_3_properties()
 
-    @profiling.function_call_count(9700, variance=0.10)
+    @profiling.function_call_count(8500)
     def test_profile_4_expressions(self):
         self.test_baseline_4_expressions()
 
index 942c431a1126a0c9af7a2552b94faf303c8275fd..10dafd6e079a847e19ebefa5a6289537e4986c67 100644 (file)
@@ -347,7 +347,7 @@ class ZooMarkTest(fixtures.TestBase):
     def test_profile_3_properties(self):
         self.test_baseline_3_properties()
 
-    @profiling.function_call_count(17698)
+    @profiling.function_call_count(16303)
     def test_profile_4_expressions(self):
         self.test_baseline_4_expressions()
 
index 7f73c5829caa5df89fca3d16c984702df34a2f2d..a2572b2d20fa1ea45cda28bf91dd53725fb69ce1 100644 (file)
@@ -167,6 +167,8 @@ def _exclude(path):
             return True
         if "threading.py" in pfname:
             return True
+        if "cprocessors" in pfuncname:
+            return True
 
     if (
             "result.py" in pfname or
@@ -177,6 +179,10 @@ def _exclude(path):
     if "utf_8.py" in pfname and pfuncname == "decode":
         return True
 
+    # hasattr seems to be inconsistent
+    if "hasattr" in path[-1][2]:
+        return True
+
     if path[-1][2] in (
             "<built-in method exec>",
             "<listcomp>"