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

test_tempfile.test_flags() fails on FreeBSD: Operation not supported #108962

Closed
vstinner opened this issue Sep 5, 2023 · 0 comments
Closed

test_tempfile.test_flags() fails on FreeBSD: Operation not supported #108962

vstinner opened this issue Sep 5, 2023 · 0 comments
Labels
OS-freebsd tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

vstinner commented Sep 5, 2023

On FreeBSD 13.2-RELEASE:

ERROR: test_flags (test.test_tempfile.TestTemporaryDirectory.test_flags)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.ware-freebsd/build/Lib/test/test_tempfile.py", line 1845, in test_flags
    os.chflags(os.path.join(root, name), flags)
OSError: [Errno 45] Operation not supported: '/tmp/test_python_s_sfxawg/8s2ad168/dir1/dir1/dir1/test0.txt'

logs: https://buildbot.python.org/all/#/builders/1223/builds/1

I'm working on a fix.

See also issue #108948.

Linked PRs

@vstinner vstinner added OS-freebsd type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Sep 5, 2023
vstinner added a commit to vstinner/cpython that referenced this issue Sep 5, 2023
Skip test_tempfile.test_flags() if chflags() fails with "OSError:
[Errno 45] Operation not supported" (ex: on FreeBSD 13).
@vstinner vstinner changed the title test_tarfile.test_flags() fails on FreeBSD: Operation not supported test_tempfile.test_flags() fails on FreeBSD: Operation not supported Sep 5, 2023
vstinner added a commit that referenced this issue Sep 5, 2023
Skip test_tempfile.test_flags() if chflags() fails with "OSError:
[Errno 45] Operation not supported" (ex: on FreeBSD 13).
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 5, 2023
…thonGH-108964)

Skip test_tempfile.test_flags() if chflags() fails with "OSError:
[Errno 45] Operation not supported" (ex: on FreeBSD 13).
(cherry picked from commit cd2ef21)

Co-authored-by: Victor Stinner <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 5, 2023
…thonGH-108964)

Skip test_tempfile.test_flags() if chflags() fails with "OSError:
[Errno 45] Operation not supported" (ex: on FreeBSD 13).
(cherry picked from commit cd2ef21)

Co-authored-by: Victor Stinner <[email protected]>
@vstinner vstinner closed this as completed Sep 7, 2023
vstinner added a commit that referenced this issue Sep 8, 2023
…H-108964) (#108968)

gh-108962: Skip test_tempfile.test_flags() if not supported (GH-108964)

Skip test_tempfile.test_flags() if chflags() fails with "OSError:
[Errno 45] Operation not supported" (ex: on FreeBSD 13).
(cherry picked from commit cd2ef21)

Co-authored-by: Victor Stinner <[email protected]>
Yhg1s pushed a commit that referenced this issue Sep 8, 2023
…H-108964) (#108967)

gh-108962: Skip test_tempfile.test_flags() if not supported (GH-108964)

Skip test_tempfile.test_flags() if chflags() fails with "OSError:
[Errno 45] Operation not supported" (ex: on FreeBSD 13).
(cherry picked from commit cd2ef21)

Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-freebsd tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant