From 5092db49144a798a83a2e433e62c45e7622a3a07 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 31 May 2009 19:30:39 +0000 Subject: [PATCH] - commenting SQLSoup out of the py3k tests for now - other py3k adjustments --- test/base/dependency.py | 2 +- test/ext/alltests.py | 2 ++ test/profiling/compiler.py | 4 ++-- test/profiling/pool.py | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/test/base/dependency.py b/test/base/dependency.py index b4d42d2532..ca6b4b42e2 100644 --- a/test/base/dependency.py +++ b/test/base/dependency.py @@ -28,7 +28,7 @@ class DependencySortTest(TestBase): items = set() def assert_unique(node): for item in [i for i in node[1] or [node[0]]]: - assert item not in items + assert item not in items, str(node) items.add(item) if item in collection: collection.remove(item) diff --git a/test/ext/alltests.py b/test/ext/alltests.py index a1f1be60d3..7c8a47bef3 100644 --- a/test/ext/alltests.py +++ b/test/ext/alltests.py @@ -17,7 +17,9 @@ def suite(): else: doctest_modules = ( ('sqlalchemy.ext.orderinglist', {'optionflags': doctest.ELLIPSIS}), + # Py2K ('sqlalchemy.ext.sqlsoup', {}) + # end Py2K ) alltests = unittest.TestSuite() diff --git a/test/profiling/compiler.py b/test/profiling/compiler.py index 78d7a711a2..6bef57aaa8 100644 --- a/test/profiling/compiler.py +++ b/test/profiling/compiler.py @@ -15,7 +15,7 @@ class CompileTest(TestBase, AssertsExecutionResults): Column('c1', Integer, primary_key=True), Column('c2', String(30))) - @profiling.function_call_count(72, {'2.4': 42}) + @profiling.function_call_count(72, {'2.4': 42, '3.0':77}) def test_insert(self): t1.insert().compile() @@ -23,7 +23,7 @@ class CompileTest(TestBase, AssertsExecutionResults): def test_update(self): t1.update().compile() - @profiling.function_call_count(195, versions={'2.4':118}) + @profiling.function_call_count(195, versions={'2.4':118, '3.0':208}) def test_select(self): s = select([t1], t1.c.c2==t2.c.c1) s.compile() diff --git a/test/profiling/pool.py b/test/profiling/pool.py index f3f69222c0..f75913dfa9 100644 --- a/test/profiling/pool.py +++ b/test/profiling/pool.py @@ -16,7 +16,7 @@ class QueuePoolTest(TestBase, AssertsExecutionResults): use_threadlocal=True) - @profiling.function_call_count(54, {'2.4': 38}) + @profiling.function_call_count(54, {'2.4': 38, '3.0':57}) def test_first_connect(self): conn = pool.connect() @@ -33,7 +33,7 @@ class QueuePoolTest(TestBase, AssertsExecutionResults): def test_second_samethread_connect(self): conn = pool.connect() - @profiling.function_call_count(5, {'2.4': 3}) + @profiling.function_call_count(5, {'2.4': 3, '3.0':6}) def go(): return pool.connect() c2 = go() -- 2.47.3