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

test: make the pytest option testcase require cmd #1100

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

yedayak
Copy link
Collaborator

@yedayak yedayak commented Feb 6, 2024

It fails if the command doesn't exist, since the options are parsed from the command invocation.

It fails if the command doesn't exist, since the options are parsed from
the command invocation.
Copy link
Collaborator

@akinomyoga akinomyoga left a comment

Choose a reason for hiding this comment

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

mypy in the CI complains as

mypy.....................................................................Failed
- hook id: mypy
- exit code: 2

venv/lib/python3.12/site-packages/_pytest/_code/code.py:401: error: Positional-only parameters are only supported in Python 3.8 and greater  [syntax]
Found 1 error in 1 file (errors prevented further checking)
venv/lib/python3.12/site-packages/_pytest/_code/code.py:401: error: Positional-only parameters are only supported in Python 3.8 and greater  [syntax]
Found 1 error in 1 file (errors prevented further checking)
venv/lib/python3.12/site-packages/_pytest/_code/code.py:401: error: Positional-only parameters are only supported in Python 3.8 and greater  [syntax]
Found 1 error in 1 file (errors prevented further checking)
venv/lib/python3.12/site-packages/_pytest/_code/code.py:401: error: Positional-only parameters are only supported in Python 3.8 and greater  [syntax]
Found 1 error in 1 file (errors prevented further checking)

Maybe this is an issue of a specific version of mypy?

python/mypy#13499

@scop scop merged commit bdb59e1 into scop:master Feb 8, 2024
6 of 7 checks passed
@yedayak yedayak deleted the pytest-requires-cmd branch June 14, 2024 13:21
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.

3 participants