]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Sep 2005 02:23:37 +0000 (02:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Sep 2005 02:23:37 +0000 (02:23 +0000)
lib/sqlalchemy/objectstore.py
test/testbase.py

index 6edefbb8c936121cf5442af686681a1c99963850..7d27e78d586cde8d88b53a0c4dd9febf559c583c 100644 (file)
@@ -336,7 +336,7 @@ class UOWTransaction(object):
     
         class Node:
             def __init__(self, mapper):
-                print "new node on " + str(mapper)
+                #print "new node on " + str(mapper)
                 self.mapper = mapper
                 self.children = util.HashSet()
                 self.parent = None
@@ -408,7 +408,7 @@ class UOWTransaction(object):
         assert(len(self.tasks.values()) == len(tasklist)) # "sorted task list not the same size as original task list"
 
         import string,sys
-        print string.join([str(t) for t in tasklist], ',')
+        #print string.join([str(t) for t in tasklist], ',')
         #sys.exit(0)
         
         return tasklist
index 0ab58e8b7217f6a26bfe4df726cba98182dd44b7..6bdad4953ae2627d8c8e7cf5ce7f6b1f589e51bd 100644 (file)
@@ -1,14 +1,19 @@
 import unittest
 
+echo = True
 
 class PersistTest(unittest.TestCase):
     def __init__(self, *args, **params):
         unittest.TestCase.__init__(self, *args, **params)
+    def echo(self, text):
+        if echo:
+            print text
         
 
 class AssertMixin(PersistTest):
     def assert_result(self, result, class_, *objects):
-        print repr(result)
+        if echo:
+            print repr(result)
         self.assert_list(result, class_, objects)
     def assert_list(self, result, class_, list):
         self.assert_(len(result) == len(list), "result list is not the same size as test list, for class " + class_.__name__)