From: Mike Bayer Date: Sun, 18 Nov 2007 02:18:52 +0000 (+0000) Subject: oops, print statements... X-Git-Tag: rel_0_4_1~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d86eb9ba4fc8c86f18fd242fa63d4cbd1992bbc9;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git oops, print statements... --- diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index b828750d4a..47a7022695 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -105,14 +105,11 @@ class Query(object): key column values in the order of the table def's primary key columns. """ - print "LOAD CHECK1" ret = self._extension.load(self, ident, **kwargs) if ret is not mapper.EXT_CONTINUE: return ret - print "LOAD CHECK2" key = self.mapper.identity_key_from_primary_key(ident) instance = self.populate_existing()._get(key, ident, **kwargs) - print "LOAD CHECK3" if instance is None and raiseerr: raise exceptions.InvalidRequestError("No instance found for identity %s" % repr(ident)) return instance diff --git a/test/orm/unitofwork.py b/test/orm/unitofwork.py index 28efbf056c..b985cc8a50 100644 --- a/test/orm/unitofwork.py +++ b/test/orm/unitofwork.py @@ -119,10 +119,8 @@ class VersioningTest(ORMTest): except exceptions.ConcurrentModificationError, e: assert True # reload it - print "RELOAD" s1.query(Foo).load(f1s1.id) # now assert version OK - print "VERSIONCHECK" s1.query(Foo).with_lockmode('read').get(f1s1.id) # assert brand new load is OK too