summaryrefslogtreecommitdiff
path: root/xattr/tests/test_xattr.py
diff options
context:
space:
mode:
Diffstat (limited to 'xattr/tests/test_xattr.py')
-rw-r--r--xattr/tests/test_xattr.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/xattr/tests/test_xattr.py b/xattr/tests/test_xattr.py
index bd201b7..f96ba30 100644
--- a/xattr/tests/test_xattr.py
+++ b/xattr/tests/test_xattr.py
@@ -18,8 +18,8 @@ class BaseTestXattr(object):
d['SUNWattr_ro'] = x['SUNWattr_ro']
d['SUNWattr_rw'] = x['SUNWattr_rw']
- self.assertEqual(x.keys(), d.keys())
- self.assertEqual(x.list(), d.keys())
+ self.assertEqual(list(x.keys()), list(d.keys()))
+ self.assertEqual(list(x.list()), list(d.keys()))
self.assertEqual(dict(x), d)
x['user.sopal'] = b'foo'
@@ -60,7 +60,8 @@ class BaseTestXattr(object):
try:
assign()
- except TypeError, e:
+ except TypeError:
+ e = sys.exc_info()[1]
self.assertEqual(str(e), msg)
def test_symlink_attrs(self):