test_add_in_nonascii_branch
John A Meinel
john at arbash-meinel.com
Sun Oct 30 22:41:24 GMT 2005
Alexander Belchenko wrote:
> I think character for testing (u"\u1234") was choosed randomly, or may
> be someone like ethiopean language ;-)
>
> \u1234 is ethiopic syllable see (from Unicode standard)
>
> But this ethiopic letter cause error in shutil.rmtree when cleaning out
> test tree after successful passing of all desired tests on win32:
Actually, the problem is that we need to make sure we are passing the
python os functions a unicode string, so that it knows to query the
filesystem as unicode.
Can you try: shutil.rmtree(unicode(path))
I think that would make the test work.
As far as the arbitraryness of \u1234, yes, it is arbitrary, but it
needs to be a genuine non-ascii character.
Because we are testing the handling non-ascii files.
John
=:->
>
> running tests...
> bzr: ERROR: [Errno 22] Invalid argument:
> 'E:\\work\\Python\\bzr\\0.6\\win32-dev\\test0000.tmp\\testnonascii.NonAsciiTest.test_ad
>
> d_in_nonascii_branch\\?'
> command: 'bzr' 'selftest' '-v'
> pwd: u'E:\\work\\Python\\bzr\\0.6\\win32-dev'
> error: exceptions.OSError
> at C:\Python24\lib\shutil.py line 166, in rmtree()
> see "C:\\.bzr.log" for debug information
>
>
> Alexander.
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051030/14bdb427/attachment.pgp
More information about the bazaar
mailing list