Commit c2d481fb authored by Hynek Schlawack's avatar Hynek Schlawack

#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.
parent b22ba046
...@@ -417,8 +417,7 @@ class TestShutil(unittest.TestCase): ...@@ -417,8 +417,7 @@ class TestShutil(unittest.TestCase):
dst = os.path.join(tmp_dir, 'the_copy') dst = os.path.join(tmp_dir, 'the_copy')
write_file(dst, dst) write_file(dst, dst)
shutil.copystat(src, dst) shutil.copystat(src, dst)
self.assertEqual(os.listxattr(src), ['user.the_value']) self.assertEqual(os.getxattr(dst, 'user.the_value'), b'fiddly')
self.assertEqual(os.getxattr(src, 'user.the_value'), b'fiddly')
@support.skip_unless_symlink @support.skip_unless_symlink
@support.skip_unless_xattr @support.skip_unless_xattr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment