Kaydet (Commit) 9cc3b1cc authored tarafından Neal Norwitz's avatar Neal Norwitz

Fix this test on Solaris. There can be embedded \r, so don't just replace

the one at the end.
üst 57a0361a
......@@ -24,11 +24,11 @@ def normalize_output(data):
# OSF/1 (Tru64) apparently turns \n into \r\r\n.
if data.endswith('\r\r\n'):
return data[:-3] + '\n'
return data.replace('\r\r\n', '\n')
# IRIX apparently turns \n into \r\n.
if data.endswith('\r\n'):
return data[:-2] + '\n'
return data.replace('\r\n', '\n')
return data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment