Merge "Make it easier to debug badly broken tests."
This commit is contained in:
commit
01f436aa41
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user