This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hynek
Recipients Arfrever, benjamin.peterson, eric.araujo, hynek, neologix, pitrou
Date 2012-05-05.18:54:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <4FA57749.1000602@ox.cx>
In-reply-to <1336240285.82.0.747530639477.issue14082@psf.upfronthosting.co.za>
Content
> The copyxattr() function should be private (_copyxattr()).

Ok. I presumed that not adding it to __all__ is "private enough".

> For some reason the tests are failing here:
> 
> ======================================================================
> ERROR: test_copy2_xattr (test.test_shutil.TestShutil)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/antoine/cpython/default/Lib/test/test_shutil.py", line 410, in test_copy2_xattr
>     os.setxattr(src, 'user.foo', b'42')
> OSError: [Errno 95] Operation not supported
> 
> ======================================================================
> ERROR: test_copyxattr (test.test_shutil.TestShutil)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/antoine/cpython/default/Lib/test/test_shutil.py", line 296, in test_copyxattr
>     os.setxattr(src, 'user.foo', b'42')
> OSError: [Errno 95] Operation not supported

Looks like your file system Python uses for tmp files doesn't support
xattr. That's bad because you can't verify. How should I cope with that?
try/catch on the first setxattr() and skip the test if it fails? Is the
an official way to do that?
History
Date User Action Args
2012-05-05 18:54:12hyneksetrecipients: + hynek, pitrou, benjamin.peterson, eric.araujo, Arfrever, neologix
2012-05-05 18:54:11hyneklinkissue14082 messages
2012-05-05 18:54:11hynekcreate