diff options
Diffstat (limited to 'xattr')
-rw-r--r-- | xattr/__init__.py | 2 | ||||
-rw-r--r-- | xattr/tests/test_xattr.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/xattr/__init__.py b/xattr/__init__.py index 883a46d..de02f72 100644 --- a/xattr/__init__.py +++ b/xattr/__init__.py @@ -7,7 +7,7 @@ The xattr type wraps a path or file descriptor with a dict-like interface that exposes these extended attributes. """ -__version__ = '0.7.5' +__version__ = '0.7.6' from .lib import (XATTR_NOFOLLOW, XATTR_CREATE, XATTR_REPLACE, XATTR_NOSECURITY, XATTR_MAXNAMELEN, XATTR_FINDERINFO_NAME, 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): |