[Python-checkins] cpython: #15238: Fix xattr related shutil.copystat tests

hynek.schlawack python-checkins at python.org
Mon Jul 16 17:15:25 CEST 2012


http://hg.python.org/cpython/rev/265e36e277f3
changeset:   78134:265e36e277f3
user:        Hynek Schlawack <hs at ox.cx>
date:        Mon Jul 16 17:11:10 2012 +0200
summary:
  #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.

files:
  Lib/test/test_shutil.py |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -417,8 +417,7 @@
         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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list