Skip to content
Snippets Groups Projects
  1. Oct 20, 2011
    • Guido Trotter's avatar
      Fix unittest failures with python 2.7 · d6f8db24
      Guido Trotter authored
      
      In python 2.7 the ovf unittests fail because OVFReader expects
      ElementTree.parse() of an erroneous document to throw an
      xml.parsers.expat.ExpatError while instead it throws an
      ElementTree.ParseError.
      
      The solution is to "except" for both errors, with the catch that
      ParseError didn't exist before, so we need to define it locally and
      get it from the module if it exists, while leaving it set to "None"
      (thus catching no exception) if it does not.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
      d6f8db24
  2. Oct 18, 2011
  3. Oct 17, 2011
  4. Oct 14, 2011
  5. Oct 13, 2011
  6. Oct 12, 2011
Loading