Commits

Mike Bayer committed 8abe3ef

tweaks

  • Participants
  • Parent commits 2daf2bf
  • Tags rel_0_2_2

Comments (0)

Files changed (1)

File test/orm/inheritance3.py

 
 class Page(BaseObject):
     def __repr__(self):
-        return "%s(%s)" % (self.__class__.__name__, repr(self.page_no))
+        return "%s(%s)" % (self.__class__.__name__, str(self.page_no))
 
 class MagazinePage(Page):
     def __repr__(self):
-        return "%s(%s, %s)" % (self.__class__.__name__, repr(self.page_no), repr(self.magazine))
+        return "%s(%s, %s)" % (self.__class__.__name__, str(self.page_no), repr(self.magazine))
 
 class ClassifiedPage(MagazinePage):
     pass
 
         classified_page_mapper = mapper(ClassifiedPage, classified_page_table, inherits=magazine_page_mapper, polymorphic_identity='c')
 
+    def tearDown(self):
+        for t in metadata.table_iterator(reverse=True):
+            t.delete().execute()
+
     def tearDownAll(self):
         metadata.drop_all()
         clear_mappers()
         assert repr(p.issues[0].locations[0].magazine.pages) == repr([page, page2, page3])
         
 if __name__ == '__main__':
-    testbase.main()
+    testbase.main()