Commits

Lenard Lindstrom committed 9e48b13

continuation of rev 2517 bug fix

  • Participants
  • Parent commits 9f76686

Comments (0)

Files changed (2)

 # BREAK = change breaks existing code
 # BUG    = fixed a bug that was (or could have been) crashing
 
-[SVN 2517] July 17, 2009
+[SVN 2517-2518] July 17, 2009
     [BUG] unit test framework fails for Python 3.1 on Windows due
           to str/bytes confusion
 

test/test_utils/async_sub.py

                     nAvail = maxsize
                 if nAvail > 0:
                     (errCode, read) = ReadFile(x, nAvail, None)
-                if isinstance(read, bytes):
-                    read = read.decode('ascii')
             except ValueError:
                 return self._close(which)
             except (subprocess.pywintypes.error, Exception):
             if self.universal_newlines:
                 # Translate newlines. For Python 3.x assume read is text.
                 # If bytes then another solution is needed.
-##                read = self._translate_newlines(read)
                 read = read.replace("\r\n", "\n").replace("\r", "\n")
             return read