Skip to content

gh-104242: Enable test_is_char_device_true in pathlib test on all platform - #116983

Merged
serhiy-storchaka merged 3 commits into
python:mainfrom
aisk:test-osdevnull-in-pathlib
Mar 26, 2024
Merged

serhiy-storchaka merged 3 commits into
python:mainfrom
aisk:test-osdevnull-in-pathlib

Conversation

@aisk

@aisk aisk commented Mar 19, 2024 •

Copy link
Copy Markdown
Member

Using os.devnull to create the Path object in test_is_char_device_true. This will fix the original issue and also enable the test on Windows.

Previous discussion: #116904 (review)

Comment thread Lib/test/test_pathlib/test_pathlib.py Resolved

ghost 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.

LGTM.

@serhiy-storchaka serhiy-storchaka added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Mar 19, 2024
@serhiy-storchaka
serhiy-storchaka merged commit af1b0e9 into python:main Mar 26, 2024
@miss-islington-app

ghost commented Mar 26, 2024

Copy link
Copy Markdown

Thanks @aisk for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@miss-islington-app

ghost commented Mar 26, 2024

Copy link
Copy Markdown

Sorry, @aisk and @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker af1b0e94400d1bf732466d675054df8cf7dfb62d 3.12

@miss-islington-app

ghost commented Mar 26, 2024

Copy link
Copy Markdown

Sorry, @aisk and @serhiy-storchaka, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker af1b0e94400d1bf732466d675054df8cf7dfb62d 3.11

@bedevere-app

ghost commented Mar 27, 2024

Copy link
Copy Markdown

GH-117277 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Mar 27, 2024
@aisk
aisk deleted the test-osdevnull-in-pathlib branch March 27, 2024 03:45
@serhiy-storchaka serhiy-storchaka removed their assignment Mar 27, 2024
@serhiy-storchaka serhiy-storchaka removed the needs backport to 3.11 only security fixes label Mar 27, 2024
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants