summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-07-16 15:11:10 (GMT)
committerHynek Schlawack <hs@ox.cx>2012-07-16 15:11:10 (GMT)
commitc2d481fbcd1e7b6cda02efc0ebbcf940c548b9cb (patch)
treee3f402878792984c8ad059b8628b73cbbd6df767
parentb22ba046ae8219b03b153c742f475cb4292a1dee (diff)
downloadcpython-c2d481fbcd1e7b6cda02efc0ebbcf940c548b9cb.zip
cpython-c2d481fbcd1e7b6cda02efc0ebbcf940c548b9cb.tar.gz
cpython-c2d481fbcd1e7b6cda02efc0ebbcf940c548b9cb.tar.bz2
#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.
-rw-r--r--Lib/test/test_shutil.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index e5c38eb..eb0e9a4 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -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