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

Add support for pathlib.Path to normalizeFilePath. #784

Merged
merged 9 commits into from
Nov 22, 2024

Conversation

knutnergaard
Copy link
Contributor

No description provided.

knutnergaard and others added 5 commits November 20, 2024 14:08
@knutnergaard knutnergaard marked this pull request as ready for review November 20, 2024 19:56
@knutnergaard knutnergaard changed the title Add support for pathlib.Path to normalizeFilePath. Add support for pathlib.Path to normalizeFilePath. Nov 20, 2024
Add `pathlib.Path` to exception documentation in `normalizeFilePath`.
- broadened scope of `Path.resolve` for improved robustness 
- document implicit exception.
- improved error message.
- corrected typo in docstring.
@knutnergaard
Copy link
Contributor Author

knutnergaard commented Nov 21, 2024

@benkiel A couple tests fail after the latest commit, but I think the improved file path robustness is worth changing TestNormalizers to accommodate it. The only exception might be empty str values, which pathlib.Path resolves to the current directory.

@benkiel
Copy link
Member

benkiel commented Nov 22, 2024

@knutnergaard will look at tests (and add some for path lib)

@benkiel
Copy link
Member

benkiel commented Nov 22, 2024

I am going to merge this and then fix the tests in a new PR (it's easier)

@benkiel benkiel merged commit 8870400 into robotools:v1 Nov 22, 2024
1 of 10 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