Skip to content

gh-156707: Remove the junction created in test_realpath_volume_guid_path() - #156709

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-156707-testjunc
Open

gh-156707: Remove the junction created in test_realpath_volume_guid_path()#156709
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-156707-testjunc

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

The test created a junction to a volume without a mount point and left it to the temporary directory cleanup, which descended into the junction and tried to remove files on that volume.

os.rmdir() removes the junction itself, not the directory it points to.

…guid_path()

The junction pointed to a volume without a mount point.  It was left for the
temporary directory cleanup, which descended into it and tried to remove
files on that volume.

os.rmdir() removes the junction itself, not the directory it points to.
@vstinner

Copy link
Copy Markdown
Member

I prefer the general fix #156710.

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

It will not harm to apply both fixes, I already applied this fix to #156611, so it will not break buildbots if merged first.

@vstinner

Copy link
Copy Markdown
Member

The rmdir() call looks like a workaround for os_helper.rmtree() bug. I don't think that it's needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants