Message6227
Logged In: YES
user_id=43607
I am reopening this bug.
In the current version of Python, with a current version of
IRIX (6.5.13), the test still fails. If you look closely at
the output and compare it with the comment and code in the
test file, you can see why:
The output that the test got was 'I wish to buy a fish
license.\r\nFor my pet fish, Eric.\n'. The test removes a
final \r\n and replaces it with just \n before comparing
(the result is shown above), but it doesn't do that for
embedded \r\n, and that is what is wrong with the output.
I suggest changing the lines
if s1[-2:] == "\r\n":
s1 = s1[:-2] + "\n"
to something like
s1 = string.join(string.split(s1, '\r\n'), '\n')
(or s1 = '\n'.join(s1.split('\r\n')) ). |
|
Date |
User |
Action |
Args |
2007-08-23 13:56:02 | admin | link | issue456395 messages |
2007-08-23 13:56:02 | admin | create | |
|