Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert sys.platform verification to simple comparison #11998

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

nicoddemus
Copy link
Member

As the comment above it states, we need to keep the comparison simple so mypy can understand it, otherwise it will fail to properly handle this on Windows and will flag os.getuid() missing.

As the comment above it states, we need to keep the comparison simple so mypy can understand it, otherwise it will fail to properly handle this on Windows and will flag ``os.getuid()`` missing.
@RonnyPfannschmidt
Copy link
Member

i opened a upstream issue so ruff can decide what to do with it

@nicoddemus nicoddemus merged commit 5f241f3 into pytest-dev:main Feb 17, 2024
24 checks passed
@nicoddemus nicoddemus deleted the revert-platform-check branch February 17, 2024 19:10
@Pierre-Sassoulas
Copy link
Member

Hurgh, sorry, I should have read that comment.

@nicoddemus
Copy link
Member Author

Oh don't worry, there were a ton of changes in that diff, easy to let something like that slip by. 👍

@RonnyPfannschmidt
Copy link
Member

astral-sh/ruff#10054 ensures ruff won't introduce the issue in future :)

flying-sheep pushed a commit to flying-sheep/pytest that referenced this pull request Apr 9, 2024
As the comment above it states, we need to keep the comparison simple so mypy can understand it, otherwise it will fail to properly handle this on Windows and will flag ``os.getuid()`` missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants