Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-89812: Simplify creation of symlinks in pathlib tests.#106061

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

barneygale
Copy link
Contributor

@barneygalebarneygale commentedJun 24, 2023
edited by bedevere-bot
Loading

RemovePathTest.dirlink() function. Symlinks inPathTest.setUp() are created usingos.symlink() directly; symlinks in test functions usePath.symlink_to() in order to make the tests applicable to a (near-)futureAbstractPath class.

Remove `PathTest.dirlink()` function. Symlinks in `PathTest.setUp()` arecreated using `os.symlink()` directly; symlinks in test functions use`Path.symlink_to()` in order to make the tests applicable to a(near-)future `AbstractPath` class.
Copy link
Member

@CAM-GerlachCAM-Gerlach left a comment

Choose a reason for hiding this comment

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

I'm not an expert on symlink handling, but while it does make the test code slightly less concise, there appears to be a motivated reason to do so, it eliminates a workaround, and is needed for future improvements. I also couldn't spot any obvious issues in the implementation, though again, I defer to Barney and others regarding SME issues.

@barneygale
Copy link
ContributorAuthor

Thank you for the review CAM!

@barneygalebarneygale merged commite212618 intopython:mainJun 30, 2023
manosriram pushed a commit to manosriram/cpython that referenced this pull requestJul 1, 2023
…onGH-106061)Remove `PathTest.dirlink()` function. Symlinks in `PathTest.setUp()` arecreated using `os.symlink()` directly; symlinks in test functions use`Path.symlink_to()` in order to make the tests applicable to a(near-)future `AbstractPath` class.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@CAM-GerlachCAM-GerlachCAM-Gerlach approved these changes

Assignees
No one assigned
Labels
skip newstestsTests in the Lib/test dirtopic-pathlib
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@barneygale@CAM-Gerlach@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp