summaryrefslogtreecommitdiff
path: root/test/aaa_profiling/test_compiler.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_compiler.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_compiler.py')
-rw-r--r--test/aaa_profiling/test_compiler.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/aaa_profiling/test_compiler.py b/test/aaa_profiling/test_compiler.py
index 53df3b28e..caa782c3a 100644
--- a/test/aaa_profiling/test_compiler.py
+++ b/test/aaa_profiling/test_compiler.py
@@ -34,21 +34,19 @@ class CompileTest(fixtures.TestBase, AssertsExecutionResults):
cls.dialect = default.DefaultDialect()
- @profiling.function_call_count(versions={'2.7':62, '2.6':62,
- '3':68})
+ @profiling.function_call_count(62)
def test_insert(self):
t1.insert().compile(dialect=self.dialect)
- @profiling.function_call_count(versions={'2.6':56, '2.7':56})
+ @profiling.function_call_count(56)
def test_update(self):
t1.update().compile(dialect=self.dialect)
- @profiling.function_call_count(versions={'2.6':117, '2.7':117, '3':124})
+ @profiling.function_call_count(110)
def test_update_whereclause(self):
t1.update().where(t1.c.c2==12).compile(dialect=self.dialect)
- @profiling.function_call_count(versions={'2.7':148, '2.6':148,
- '3':161})
+ @profiling.function_call_count(148)
def test_select(self):
s = select([t1], t1.c.c2==t2.c.c1)
s.compile(dialect=self.dialect)