[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Tests

From: D.J. Heap <dj_at_shadyvale.net>
Date: 2003-09-07 23:04:13 CEST

e.huelsmann@gmx.net wrote:

> Hi,
>
> [ snip ]
>
>>I don't think so -- I've been seeing the update-15 test fail for a
>>while, just haven't had time to look at it closely and the new trans
>>test failure looks exactly the same.
>>
>>To fix the trans test it looks like this method needs to be fixed:
>>
>>def _tweak_paths(list):
>> if os.sep != "/":
>> tweaked_list = []
>> for line in list:
>> tweaked_list.append(string.replace(line, os.sep, "/"))
>> return tweaked_list
>> else:
>> return list
>>
>>Aren't the last two parameters to the string.replace call backwards?
>
>
> That depends :-)
> Is the method applied to expected_output or to output ?
>
> Expected output can be converted using the function above;
> output should be converted with the parameters reversed. I just cannot
> test it, since I have no Windows box available.
>
>
> bye.
>
> Erik.
>
>

It's being applied to expected_output. Here's the relevant test output
on Windows:

EXPECTED STDOUT:
Sending working_copies/trans_tests-6/foo
Transmitting file data .
Committed revision 3.
ACTUAL STDOUT:
Sending working_copies\trans_tests-6\foo
Transmitting file data .
Committed revision 3.
EXCEPTION: SVNLineUnequal
FAIL: trans_tests.py 6: committing eol-style change forces text send

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 7 23:05:07 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.