]> granicus.if.org Git - python/commit
#14885: Make support.skip_unless_xattr check also tempfile
authorHynek Schlawack <hs@ox.cx>
Wed, 23 May 2012 09:22:44 +0000 (11:22 +0200)
committerHynek Schlawack <hs@ox.cx>
Wed, 23 May 2012 09:22:44 +0000 (11:22 +0200)
commite02ba1031fc1ae1ad095b34f6a07451fb789e23f
tree47831164539cb54d2d6a9b4ae8a8391e7ae0e0f8
parente1f107e981398db77b17f9e5f99f6bdda93abcd3
#14885: Make support.skip_unless_xattr check also tempfile

There is a rare edge case where the filesystem used by the tempfile functions
(usually /tmp) doesn't support xattrs while the one used by TESTFN (the current
directory, so likely to be below /home) does. This causes the xattr related
test_shutil tests fail. skip_unless_xattr now checks both.

I have also added skip_unless_xattr to __all__ where it has been missing.
Lib/test/support.py