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

Request: test framework support pathlib objects #4679

Open
mwichmann opened this issue Feb 5, 2025 · 0 comments
Open

Request: test framework support pathlib objects #4679

mwichmann opened this issue Feb 5, 2025 · 0 comments
Labels
testsuite Things that only affect the SCons testing. Do not use just because a PR has tests.

Comments

@mwichmann
Copy link
Collaborator

There are some basic test setup functions like test.subdir and test.write that could easily recognize Path objects and act on them, rather than requiring a string. This would allow using pathlib operations to construct file/directory paths without first having to convert them back to strings. It would help make reading a little easier, too... for example, we now see path components presented as a list, which the framework then assembles for us, like in:

test.subdir(['rep1', 'build'], ['rep1', 'build', 'var1'])
@mwichmann mwichmann added the testsuite Things that only affect the SCons testing. Do not use just because a PR has tests. label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testsuite Things that only affect the SCons testing. Do not use just because a PR has tests.
Projects
None yet
Development

No branches or pull requests

1 participant