Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestTemporaryDirectory.test_flags fails on FreeBSD/ZFS #83228

Closed
attilajeges mannequin opened this issue Dec 14, 2019 · 3 comments
Closed

TestTemporaryDirectory.test_flags fails on FreeBSD/ZFS #83228

attilajeges mannequin opened this issue Dec 14, 2019 · 3 comments
Labels
3.9 only security fixes OS-freebsd tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@attilajeges
Copy link
Mannequin

attilajeges mannequin commented Dec 14, 2019

BPO 39047
Nosy @attilajeges
PRs
  • bpo-39047: Skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised. (GH-17607) #17607
  • 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:

    assignee = None
    closed_at = None
    created_at = <Date 2019-12-14.17:10:08.242>
    labels = ['type-bug', 'tests', '3.9']
    title = 'TestTemporaryDirectory.test_flags fails on FreeBSD/ZFS'
    updated_at = <Date 2019-12-14.17:14:29.161>
    user = 'https://github.com/attilajeges'

    bugs.python.org fields:

    activity = <Date 2019-12-14.17:14:29.161>
    actor = 'attilajeges'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2019-12-14.17:10:08.242>
    creator = 'attilajeges'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39047
    keywords = ['patch']
    message_count = 1.0
    messages = ['358398']
    nosy_count = 1.0
    nosy_names = ['attilajeges']
    pr_nums = ['17607']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39047'
    versions = ['Python 3.9']

    @attilajeges
    Copy link
    Mannequin Author

    attilajeges mannequin commented Dec 14, 2019

    When I run test_tempfle.py on FreeBSD/ZFS I get the following error:

    ======================================================================
    ERROR: test_flags (main.TestTemporaryDirectory)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/usr/home/attilaj/cpython/Lib/test/test_tempfile.py", line 1498, in test_flags
        os.chflags(os.path.join(root, name), flags)
    OSError: [Errno 45] Operation not supported: '/tmp/awxj9cgb/dir0/dir0/dir0/test1.txt'

    Ran 90 tests in 1.133s

    FAILED (errors=1, skipped=1)

    I think this is similar to Issue bpo-15747.

    @attilajeges attilajeges mannequin added 3.9 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Dec 14, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @emaste
    Copy link
    Contributor

    emaste commented Apr 22, 2022

    I presume we would see the same behaviour on Linux with /tmp on ZFS.

    @serhiy-storchaka
    Copy link
    Member

    It was fixed in a duplicate issue #108962.

    @serhiy-storchaka serhiy-storchaka closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes OS-freebsd tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    Status: Done
    Development

    No branches or pull requests

    3 participants