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

Sandbox-sensitive test #644

Open
pbsds opened this issue Oct 30, 2024 · 0 comments
Open

Sandbox-sensitive test #644

pbsds opened this issue Oct 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pbsds
Copy link

pbsds commented Oct 30, 2024

Describe the bug
A clear and concise description of what the bug is.

This part of the pytest test TestUIUIFileDialog.test_process_event:

file_dialog.file_path_text_line.set_text('/')
file_dialog.process_event(pygame.event.Event(UI_TEXT_ENTRY_FINISHED,
{'ui_element': file_dialog.file_path_text_line}))
assert Path(file_dialog.current_directory_path).name == ''

fails with

>       assert Path(file_dialog.current_directory_path).name == ''
E       AssertionError: assert 'images' == ''
E         
E         + images

when ran in a nix sandbox on macos. I think it assumes / has the x permission?

uncovered in NixOS/nixpkgs#352150 (comment)

To Reproduce
Steps to reproduce the behaviour:

nix build --system aarch64-darwin github:nixos/nixpkgs/refs/pull/352150/head#python311Packages.pygame-gui --check

Expected behaviour
build success

Platform and software (please complete the following information):

  • OS: nixos 24.05
  • Pygame GUI version: 0.6.2
  • Pygame version: 2.5.2 CE edition (also reproduced on 2.5.1)
@pbsds pbsds added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant