From: Jason Kirtland Date: Thu, 13 Dec 2007 21:56:52 +0000 (+0000) Subject: Fixed some __repr__'s attempting to %d their not-yet-assigned primary key ids. X-Git-Tag: rel_0_4_2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94355aebe6758c4c393c41302adb70bfee9cec34;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fixed some __repr__'s attempting to %d their not-yet-assigned primary key ids. --- diff --git a/test/orm/inheritance/poly_linked_list.py b/test/orm/inheritance/poly_linked_list.py index 1b14b44265..bdec083d36 100644 --- a/test/orm/inheritance/poly_linked_list.py +++ b/test/orm/inheritance/poly_linked_list.py @@ -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