1. Lucas Taylor
  2. txGrowl

Commits

Lucas Taylor  committed ac1e552

Fixed DirtyReactorAggregateErrors in tests. Updated setUp to disconnect the growl client properly before ending the test, to clear the selectable in the reactor.

  • Participants
  • Parent commits 54fce48
  • Branches default

Comments (0)

Files changed (2)

File README

View file
 TODO
 ****
 
-* Fix DirtyReactorAggregateErrors in tests
-"Failure: twisted.trial.util.DirtyReactorAggregateError: Reactor was unclean."
 * Send messages to multiple growl daemons
 * Figure out how to register an icon
 * Is it a problem to register the app multiple times?

File tests/test_growl.py

View file
         growler.register() # Register application with destination growl daemons
 
         self.growler = growler
-
+        
         log.addObserver(self.growler)
         self.addCleanup(log.removeObserver, self.growler)
 
+        def disconnectGrowler():
+            if self.growler.protocol.transport is not None:
+                self.growler.protocol.transport.stopListening()
+        self.addCleanup(disconnectGrowler)
+            
+
 
     def tearDown(self):
         def finalize(_):