Merge "Make it easier to debug badly broken tests."

This commit is contained in:
Jenkins
2013-04-29 15:49:01 +00:00
committed by Gerrit Code Review

View File

@@ -24,6 +24,8 @@ def readuntil2crlfs(fd):
crlfs = 0 crlfs = 0
while crlfs < 2: while crlfs < 2:
c = fd.read(1) c = fd.read(1)
if not c:
raise ValueError("didn't get two CRLFs; just got %r" % rv)
rv = rv + c rv = rv + c
if c == '\r' and lc != '\n': if c == '\r' and lc != '\n':
crlfs = 0 crlfs = 0