mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Fix this test on Solaris. There can be embedded \r, so don't just replace
the one at the end.
This commit is contained in:
parent
57a0361a9e
commit
9cc3b1ccef
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue