-
Notifications
You must be signed in to change notification settings - Fork 2
test_ls_contrast
is broken on Python 3.13
#4
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
Comments
I see two reasonable ways of resolving this:
|
jeremyschlatter
added a commit
to jeremyschlatter/shlib
that referenced
this issue
May 19, 2025
Python 3.13 changed the behavior of trailing `**` globs, which changed the behavior of `ls(..., select='.../**')`. This commit preserves the previous behavior. Fixes KenKundert#4
jeremyschlatter
added a commit
to jeremyschlatter/shlib
that referenced
this issue
May 19, 2025
This was referenced May 19, 2025
@KenKundert I'm not sure which way you want to go with this, so I made two different PRs to resolve the failing test. If you want to match pathlib's behavior, which changed in Python 3.13, go with #5. If you want to preserve shlib's previous behavior regardless of the Python version, go with #6. |
All done. Thanks Jeremy! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the Python 3.13 release notes:
test_ls_contrast
enforces the previous behavior of returning only directories. Under Python 3.13, it fails as follows:The text was updated successfully, but these errors were encountered: