Skip to content

gh-51574: Make tempfile.mkdtemp() always return absolute paths#94612

Merged
AlexWaygood merged 12 commits into
python:mainfrom
kj7rrv:mkdtemp-absolute
Apr 25, 2023
Merged

gh-51574: Make tempfile.mkdtemp() always return absolute paths#94612
AlexWaygood merged 12 commits into
python:mainfrom
kj7rrv:mkdtemp-absolute

Conversation

@kj7rrv

@kj7rrv kj7rrv commented Jul 6, 2022

Copy link
Copy Markdown
Contributor

@kj7rrv

kj7rrv commented Jul 6, 2022

Copy link
Copy Markdown
Contributor Author

@merwok a9098be adds a test

@kj7rrv

kj7rrv commented Jul 6, 2022

Copy link
Copy Markdown
Contributor Author

I tested the test both with and without the fix, and it passes with the fix and fails without it.

Comment thread Doc/library/tempfile.rst Outdated
Comment thread Lib/test/test_tempfile.py Outdated
Comment thread Lib/test/test_tempfile.py Outdated
Comment thread Lib/test/test_tempfile.py Outdated
kj7rrv and others added 2 commits July 7, 2022 07:43
Co-authored-by: Éric <merwok@netwok.org>

@mblahay mblahay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes here are sound.

Comment thread Misc/NEWS.d/next/Library/2022-07-06-11-10-37.gh-issue-51574.sveUeD.rst Outdated
…eUeD.rst


Suggested by @merwok

Co-authored-by: Éric <merwok@netwok.org>
@mblahay

mblahay commented Apr 24, 2023

Copy link
Copy Markdown
Contributor

@ambv I have taken a look at this and all seems to be in good order. Can this be moved forward?

@arhadthedev

Copy link
Copy Markdown
Member

Merging main again to unstuck DO-NOT-MERGE / unresolved review.

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @kj7rrv! This looks good to me. I'll merge once CI passes.

This will just go into 3.12, as there is a small chance of this breaking someone's code if this were backported.

@AlexWaygood AlexWaygood enabled auto-merge (squash) April 25, 2023 15:41
@AlexWaygood AlexWaygood merged commit 32bea69 into python:main Apr 25, 2023
@mblahay

mblahay commented Apr 25, 2023

Copy link
Copy Markdown
Contributor

Thank you @AlexWaygood , and congratulations @kj7rrv !

itamaro pushed a commit to itamaro/cpython that referenced this pull request Apr 26, 2023
…ython#94612)

Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants