[Python-modules-commits] [python-llfuse] 03/16: Skip extended attribute tests under GNU/kFreeBSD

Nikolaus Rath nikratio-guest at moszumanska.debian.org
Tue Mar 8 17:38:01 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 8b3882e708afeea7c80ca9f24b9802431019b636
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, 3 insertions(+), 1 deletion(-)

diff --git a/test/test_api.py b/test/test_api.py
index 990b000..af0ff9e 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
@@ -58,7 +59,8 @@ def _getxattr_helper(path, name):
 
     return value
 
-
+ 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