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

GH-89812: Make symlink support configurable in pathlib tests. #106060

Merged

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Jun 24, 2023

Adjust the pathlib tests to add a new PathTest.can_symlink class attribute, which allows us to enable or disable symlink support in tests. A (near-)future commit will add an AbstractPath class; its tests will hard-code the value to True or False depending on a stub subclass's capabilities.

Adjust the pathlib tests to add a new `PathTest.can_symlink` class
attribute, which allows us to enable or disable symlink support in tests.
A (near-)future commit will add an `AbstractPath` class; its tests will
hard-code the value to `True` or `False` depending on a stub subclass's
capabilities.
Copy link
Member

@CAM-Gerlach CAM-Gerlach left a comment

Choose a reason for hiding this comment

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

Not an expert, but the change seems reasonable, motivated and straightforward to me, and I didn't spot any obvious issues with the implementation reading through it.

@CAM-Gerlach
Copy link
Member

You might want to consider running against the buildbot fleet if you thing there's a chance this might trigger any behavior difference on different platforms, given the previous platform dependent code (special casing windows).

@barneygale
Copy link
Contributor Author

You might want to consider running against the buildbot fleet if you thing there's a chance this might trigger any behavior difference on different platforms, given the previous platform dependent code (special casing windows).

Good idea! How do I do that? :)

@barneygale barneygale added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 30, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @barneygale for commit f9bdd3a 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 30, 2023
@barneygale barneygale merged commit 3fd99b5 into python:main Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir topic-pathlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants