[Python-modules-commits] [python-llfuse] 14/16: Skip extended attribute tests under GNU/kFreeBSD
Nikolaus Rath
nikratio-guest at moszumanska.debian.org
Tue Mar 8 17:38:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
nikratio-guest pushed a commit to branch master
in repository python-llfuse.
commit 4486b7a29555a854614c62b21107204e968c7c4f
Author: Nikolaus Rath <Nikolaus at rath.org>
Date: Mon Mar 7 13:22:36 2016 -0800
Skip extended attribute tests under GNU/kFreeBSD
Origin: Debian
Forwarded: not-needed
Under GNU/kFreeBSD the setxattr and getxattr functions are dummies
that return ENOTIMPL.
---
test/test_api.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/test_api.py b/test/test_api.py
index 81242e4..e2b37c6 100755
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -21,6 +21,7 @@ import tempfile
import os
import errno
import pytest
+import sys
def test_inquire_bits():
assert 0 < llfuse.get_ino_t_bits() < 256
@@ -64,6 +65,9 @@ def test_entry_res():
a.st_atime_ns = val*1e9
assert a.st_atime_ns / 1e9 == val
+
+ at pytest.mark.skipif(sys.platform.startswith('gnukfreebsd'),
+ reason='GNU/kFreeBSD does not have xattr support')
def test_xattr():
with tempfile.NamedTemporaryFile() as fh:
key = 'user.new_attribute'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-llfuse.git
More information about the Python-modules-commits
mailing list