]> granicus.if.org Git - python/commitdiff
#15238: Fix xattr related shutil.copystat tests
authorHynek Schlawack <hs@ox.cx>
Mon, 16 Jul 2012 15:11:10 +0000 (17:11 +0200)
committerHynek Schlawack <hs@ox.cx>
Mon, 16 Jul 2012 15:11:10 +0000 (17:11 +0200)
- Loosen up test as Fedora has implicit xattrs
- Actually test the destination for xattrs

Should make Fedora buildbot green again.

Lib/test/test_shutil.py

index e5c38eb9c89bfb28fde002c05bf6f2fe5cb273bd..eb0e9a4ee7a8fd8c19d0f61d702049381f5c8475 100644 (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