Commit 1093bf2c authored by Gregory P. Smith's avatar Gregory P. Smith

sort os.listxattr results before comparing it to avoid depending on the

ordering of the directory information in the underlying filesystem.
parent eb14deca
......@@ -430,7 +430,7 @@ class TestShutil(unittest.TestCase):
os.setxattr(src, 'user.foo', b'42')
os.setxattr(src, 'user.bar', b'43')
shutil._copyxattr(src, dst)
self.assertEqual(os.listxattr(src), os.listxattr(dst))
self.assertEqual(sorted(os.listxattr(src)), sorted(os.listxattr(dst)))
self.assertEqual(
os.getxattr(src, 'user.foo'),
os.getxattr(dst, 'user.foo'))
......
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