Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented Oct 2, 2024

Fix the incorrect use of os.open() result as a context manager, while it is actually a numeric file descriptor.

I have missed the problem, because in the original version the os.open() call would always fail, and I failed to test the final version in all possible scenarios properly.

CC @vstinner

…wn_sync_suppressed()

Fix the incorrect use of `os.open()` result as a context manager,
while it is actually a numeric file descriptor.

I have missed the problem, because in the original version the
`os.open()` call would always fail, and I failed to test the final
version in all possible scenarios properly.
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

@vstinner vstinner enabled auto-merge (squash) October 2, 2024 13:55
@vstinner vstinner merged commit 8d7d257 into python:main Oct 2, 2024
35 checks passed
@mgorny mgorny deleted the nspawn-test-fix branch October 2, 2024 14:43
@mgorny
Copy link
Contributor Author

mgorny commented Oct 2, 2024

Thanks!

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.

2 participants