#15238: Fix xattr related shutil.copystat tests

- Loosen up test as Fedora has implicit xattrs
- Actually test the destination for xattrs

Should make Fedora buildbot green again.
This commit is contained in:
Hynek Schlawack 2012-07-16 17:11:10 +02:00
parent b22ba046ae
commit c2d481fbcd
1 changed files with 1 additions and 2 deletions

View File

@ -417,8 +417,7 @@ class TestShutil(unittest.TestCase):
dst = os.path.join(tmp_dir, 'the_copy')
write_file(dst, dst)
shutil.copystat(src, dst)
self.assertEqual(os.listxattr(src), ['user.the_value'])
self.assertEqual(os.getxattr(src, 'user.the_value'), b'fiddly')
self.assertEqual(os.getxattr(dst, 'user.the_value'), b'fiddly')
@support.skip_unless_symlink
@support.skip_unless_xattr