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

Nikolaus Rath nikratio-guest at moszumanska.debian.org
Mon Nov 13 12:52:48 UTC 2017


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 62cbe4de1143ae5a7f3c27ae2706ea75ee66c394
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 92fab37..5c110f4 100755
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -23,6 +23,7 @@ import errno
 import pytest
 from copy import copy
 from pickle import PicklingError
+import sys
 
 def test_inquire_bits():
     assert 0 < llfuse.get_ino_t_bits() < 256
@@ -66,6 +67,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