python / cpython

The Python programming language
https://www.python.org
Other
63.5k stars 30.42k forks source link

some test cases in test_posix.py fail if some os attributes are not supported #85615

Closed d6962455-ef8d-4321-8f67-2a37ab9f2e5a closed 3 years ago

d6962455-ef8d-4321-8f67-2a37ab9f2e5a commented 4 years ago
BPO 41443
Nosy @vstinner, @pxinwr
PRs
  • python/cpython#21688
  • python/cpython#23886
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = None closed_at = created_at = labels = ['type-bug', 'tests', '3.10'] title = 'some test cases in test_posix.py fail if some os attributes are not supported' updated_at = user = 'https://github.com/pxinwr' ``` bugs.python.org fields: ```python activity = actor = 'pxinwr' assignee = 'none' closed = True closed_date = closer = 'vstinner' components = ['Tests'] creation = creator = 'pxinwr' dependencies = [] files = [] hgrepos = [] issue_num = 41443 keywords = ['patch'] message_count = 2.0 messages = ['374610', '382773'] nosy_count = 2.0 nosy_names = ['vstinner', 'pxinwr'] pr_nums = ['21688', '23886'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue41443' versions = ['Python 3.10'] ```

    d6962455-ef8d-4321-8f67-2a37ab9f2e5a commented 4 years ago

    Some operating systems like VxWorks can't support posix.chown, posix.mknod and posix.readlink. This results that test_chown_dir_fd, test_mknod_dir_fd and test_readlink_dir_fd fail.

    vstinner commented 3 years ago

    New changeset eb7594f85741ef809b1ee337ee3431df20e6f8bb by pxinwr in branch 'master': bpo-41443: Add more attribute checking in test_posix (GH-21688) https://github.com/python/cpython/commit/eb7594f85741ef809b1ee337ee3431df20e6f8bb