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_ui: Fix spurious warnings in completion test #4829

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

wisp3rwind
Copy link
Member

For some reason, the completion test is always failing for me locally. While this PR doesn't actually fix that; at least it removes a spurious warning.

probably an issue going back to the Python 2 -> 3 switch: `map` gives an
iterator nowadays so after the test case started iterating
BASH_COMPLETION_PATHS, print_completion() couldn't find the
(previously found) bash_completion anymore, and would log a spurious
warning about that.

Also, some cleaup of path type handling
Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like clearly the right thing to me (i.e., paths are bytes, and we use syspath consistently before calling isfile).

@sampsyo sampsyo merged commit 5c2e0e7 into beetbox:master Jun 26, 2023
@wisp3rwind wisp3rwind deleted the fix_completion_test branch June 30, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants