- Timestamp:
- 07/05/08 22:16:06 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/components/tools/OmeroPy/test/integration/library.py
r2397 r2597 12 12 import omero 13 13 import tempfile 14 import traceback 15 import exceptions 14 16 15 17 class ITest(unittest.TestCase): … … 32 34 33 35 def tearDown(self): 34 self.client.closeSession() 36 failure = False 37 try: 38 self.client.closeSession() 39 except: 40 traceback.print_exc() 41 failure = True 35 42 if self.root: 36 self.root.closeSession() 43 try: 44 self.root.closeSession() 45 except: 46 traceback.print_exc() 47 failure = True 37 48 for tmpfile in self.tmpfiles: 38 49 try: … … 40 51 except: 41 52 print "Error closing:"+tmpfile 53 if failure: 54 raise exceptions.Exception("Exception on client.closeSession")
