• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 2597 for trunk/components/tools/OmeroPy/test/integration/library.py

Show
Ignore:
Timestamp:
07/05/08 22:16:06 (5 months ago)
Author:
jmoore
Message:

ticket:1018 - Fixing memory leak in solution

  • Added ome/services/messaging.xml to publish messages to child contexts
  • Fixed ordering issues SessionManagerI
  • Also:
    • Using ice_getCommunicator() if ic null in omero.client
    • Catching exceptions on session close in test.integration.library
Files:
1 modified

  • trunk/components/tools/OmeroPy/test/integration/library.py (modified) (3 diffs)

Legend:

Unmodified
Added
Removed
  • trunk/components/tools/OmeroPy/test/integration/library.py

    r2397 r2597  
    1212import omero 
    1313import tempfile 
     14import traceback 
     15import exceptions 
    1416 
    1517class ITest(unittest.TestCase): 
    … …  
    3234 
    3335    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 
    3542        if self.root: 
    36             self.root.closeSession() 
     43            try: 
     44                self.root.closeSession() 
     45            except: 
     46                traceback.print_exc() 
     47                failure = True 
    3748        for tmpfile in self.tmpfiles: 
    3849            try: 
    … …  
    4051            except: 
    4152                print "Error closing:"+tmpfile 
     53        if failure: 
     54           raise exceptions.Exception("Exception on client.closeSession") 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/