Skip to content
Snippets Groups Projects
  1. Jun 01, 2010
    • Guido Trotter's avatar
      Fix IgnoreSignals on socket.error · 14aeab22
      Guido Trotter authored
      
      Some confusion arose handling EINTR on this function: in python 2.6
      socket.error is an IOError, and thus:
        - It's an EnvironmentError
        - It has an .errno member
      
      In 2.4 and 2.5 it's not, and so its errno variable must be extracted
      from the args tuple. This patch fixes both the function, and the
      unittests.
      
      This is a cherry-pick of master commit
      965d0e5b with the portions not relevant
      to 2.1 removed (changes to the RetryOnSignals function).
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      14aeab22
  2. May 31, 2010
  3. May 27, 2010
  4. May 25, 2010
  5. May 24, 2010
    • Guido Trotter's avatar
      TestSingleFileEventHandler: abstract notifier type · 49f986e7
      Guido Trotter authored
      
      Rather than hardcode that we have two notifiers, and notifier 0 is the
      terminating one, we abstract this with class level constants. This makes
      it easier to add more, with different features.
      
      The only real change is that now the callback class takes as input the
      whole test object, rather than just the notified array, to have access
      to those constants.
      
      The rest is just replacing of hardcoded 0s and 1s with
      self.NOTIFIER_TERM and self.NOTIFIER_NORM, and of notifier_count with
      len(self.NOTIFIERS).
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      49f986e7
  6. May 22, 2010
  7. May 21, 2010
  8. May 20, 2010
  9. May 18, 2010
  10. May 17, 2010
  11. May 14, 2010
Loading