devtools/apptest.py
branchtls-sprint
changeset 1263 01152fffd593
parent 1152 c99ef2a2535c
parent 1119 3f23846b7946
child 1398 5fe84a5f7035
--- a/devtools/apptest.py	Mon Apr 06 12:37:45 2009 +0200
+++ b/devtools/apptest.py	Tue Apr 07 09:30:23 2009 +0200
@@ -493,13 +493,10 @@
         self._prepare()
         self.session.set_pool()
         self.maxeid = self.session.system_sql('SELECT MAX(eid) FROM entities').fetchone()[0]
-        #self.maxeid = self.execute('Any MAX(X)')
         
-    def tearDown(self, close=True):
+    def tearDown(self):
         self.close_connections()
         self.rollback()
         self.session.unsafe_execute('DELETE Any X WHERE X eid > %(x)s', {'x': self.maxeid})
         self.commit()
-#         if close:
-#             self.close()