This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_os failures on Fedora 15: listxattr() returns ['security.selinux']
Type: behavior Stage: resolved
Components: Extension Modules, Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, eric.araujo, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2011-10-13 21:32 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
xattr_test.patch vstinner, 2011-10-13 22:11 review
Messages (4)
msg145486 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-10-13 21:32
======================================================================
FAIL: test_fds (test.test_os.ExtendedAttributeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1599, in test_fds
    self._check_xattrs(getxattr, setxattr, removexattr, listxattr)
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1574, in _check_xattrs
    self._check_xattrs_str(str, *args)
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1543, in _check_xattrs_str
    self.assertEqual(listxattr(fn), [])
AssertionError: Lists differ: ['security.selinux'] != []

First list contains 1 additional elements.
First extra element 0:
security.selinux

- ['security.selinux']
+ []

======================================================================
FAIL: test_lpath (test.test_os.ExtendedAttributeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1584, in test_lpath
    os.llistxattr)
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1574, in _check_xattrs
    self._check_xattrs_str(str, *args)
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1543, in _check_xattrs_str
    self.assertEqual(listxattr(fn), [])
AssertionError: Lists differ: ['security.selinux'] != []

First list contains 1 additional elements.
First extra element 0:
security.selinux

- ['security.selinux']
+ []

======================================================================
FAIL: test_simple (test.test_os.ExtendedAttributeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1580, in test_simple
    os.listxattr)
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1574, in _check_xattrs
    self._check_xattrs_str(str, *args)
  File "/home/haypo/prog/python/default/Lib/test/test_os.py", line 1543, in _check_xattrs_str
    self.assertEqual(listxattr(fn), [])
AssertionError: Lists differ: ['security.selinux'] != []

First list contains 1 additional elements.
First extra element 0:
security.selinux

- ['security.selinux']
+ []
msg145487 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-10-13 22:11
Attached patch fixes test_os failures.
msg145532 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-10-14 15:23
Patch looks good, modulo one thing: the “xattr” name is confusing, I’d like it better if it was found_xattr or expected_xattr or something clearer.
msg145638 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-10-16 20:14
New changeset 78c660a63960 by Victor Stinner in branch 'default':
Close #13174: Fix extended attributes tests in test_os for SELinux
http://hg.python.org/cpython/rev/78c660a63960
History
Date User Action Args
2022-04-11 14:57:22adminsetgithub: 57383
2011-10-16 20:14:37python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg145638

resolution: fixed
stage: patch review -> resolved
2011-10-15 00:45:26terry.reedysettype: behavior
stage: patch review
2011-10-14 15:23:28eric.araujosetnosy: + eric.araujo
messages: + msg145532
2011-10-13 22:11:01vstinnersetfiles: + xattr_test.patch

nosy: + benjamin.peterson
messages: + msg145487

keywords: + patch
2011-10-13 21:32:46vstinnercreate