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: fix test_tree_with_broken_symlinks on Python 3.13 #768

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

cjwatson
Copy link
Contributor

https://docs.python.org/3/library/pathlib.html#pathlib.Path.resolve says:

Changed in version 3.13: Symlink loops are treated like other
errors: OSError is raised in strict mode, and no exception is raised
in non-strict mode. In previous versions, RuntimeError is raised no
matter the value of strict.

Adjust a test to take account of this.

https://docs.python.org/3/library/pathlib.html#pathlib.Path.resolve
says:

  _Changed in version 3.13:_ Symlink loops are treated like other
  errors: `OSError` is raised in strict mode, and no exception is raised
  in non-strict mode. In previous versions, `RuntimeError` is raised no
  matter the value of _strict_.

Adjust a test to take account of this.
@cjwatson cjwatson requested a review from mih as a code owner December 16, 2024 23:49
Copy link
Member

@mih mih left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, and the Debian NMU!

@mih mih merged commit 25ac6ef into datalad:main Dec 17, 2024
5 of 6 checks passed
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