]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixed some __repr__'s attempting to %d their not-yet-assigned primary key ids.
authorJason Kirtland <jek@discorporate.us>
Thu, 13 Dec 2007 21:56:52 +0000 (21:56 +0000)
committerJason Kirtland <jek@discorporate.us>
Thu, 13 Dec 2007 21:56:52 +0000 (21:56 +0000)
test/orm/inheritance/poly_linked_list.py

index 1b14b44265412a9b0c02b108ececa97cc34c32f3..bdec083d36c99a4b974d14070f3d114f6118061c 100644 (file)
@@ -45,7 +45,7 @@ class PolymorphicCircularTest(ORMTest):
                 if data is not None:
                     self.data = data
             def __repr__(self):
-                return "%s(%d, %s, %s)" % (self.__class__.__name__, self.id, repr(str(self.name)), repr(self.data))
+                return "%s(%s, %s, %s)" % (self.__class__.__name__, self.id, repr(str(self.name)), repr(self.data))
 
         class Table1B(Table1):
             pass
@@ -60,7 +60,7 @@ class PolymorphicCircularTest(ORMTest):
             def __init__(self, data):
                 self.data = data
             def __repr__(self):
-                return "%s(%d, %s)" % (self.__class__.__name__, self.id, repr(str(self.data)))
+                return "%s(%s, %s)" % (self.__class__.__name__, self.id, repr(str(self.data)))
 
         try:
             # this is how the mapping used to work.  ensure that this raises an error now