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

Comments (0)

Files changed (2)

-* 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/

         growler.register() # Register application with destination growl daemons
         self.growler = 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(_):