]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
more assertion hints...
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Dec 2007 21:51:16 +0000 (21:51 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Dec 2007 21:51:16 +0000 (21:51 +0000)
test/orm/unitofwork.py

index 11d7313775d287e542dc2857495e94a9d3dcf307..2fa286ba86eb879ef0e13b4afadd75aef12ef560 100644 (file)
@@ -474,7 +474,7 @@ class PKTest(ORMTest):
             Session.commit()
             assert False
         except exceptions.FlushError, fe:
-            assert str(fe) == "Can't change the identity of instance Entry@%s in session (existing identity: (%s, (5, 5), None); new identity: (%s, (5, 6), None))" % (hex(id(e)), repr(e.__class__), repr(e.__class__))
+            assert str(fe) == "Can't change the identity of instance Entry@%s in session (existing identity: (%s, (5, 5), None); new identity: (%s, (5, 6), None))" % (hex(id(e)), repr(e.__class__), repr(e.__class__)), str(fe)
             
 class ForeignPKTest(ORMTest):
     """tests mapper detection of the relationship direction when parent/child tables are joined on their