Skip decorator for tests that require functional extended attributes
(test)
| 253 | |
| 254 | |
| 255 | def skip_unless_xattr(test): |
| 256 | """Skip decorator for tests that require functional extended attributes""" |
| 257 | ok = can_xattr() |
| 258 | msg = "no non-broken extended attribute support" |
| 259 | return test if ok else unittest.skip(msg)(test) |
| 260 | |
| 261 | |
| 262 | _can_chmod = None |