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

pytest 5.0.0 complains about pytest -ra #5558

Closed
mgedmin opened this issue Jul 5, 2019 · 1 comment
Closed

pytest 5.0.0 complains about pytest -ra #5558

mgedmin opened this issue Jul 5, 2019 · 1 comment

Comments

@mgedmin
Copy link
Contributor

mgedmin commented Jul 5, 2019

I have a pytest.ini with

[pytest]
addopts = -ra

This stopped working when I upgraded pytest to version 5.0.0. Now any invocation, inluding pytest --help fails with

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: -ra
  inifile: /home/mg/src/check-python-versions/pytest.ini
  rootdir: /home/mg/src/check-python-versions

Changing the option to -r a makes pytest happy again.

Is this an intentional change? If so, it would be nice to update https://docs.pytest.org/en/latest/changelog.html to mention it. (It's probably related to the parting parsing changes not to accept shortened versions of long options, but -r is not a long option.)

mgedmin added a commit to mgedmin/check-python-versions that referenced this issue Jul 5, 2019
mgedmin added a commit to mgedmin/mgp2pdf that referenced this issue Jul 5, 2019
@nicoddemus
Copy link
Member

Hi @mgedmin,

This is a duplicate of #5523, which has been fixed already and will be available in 5.0.1, which I'm about to release. 👍

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

No branches or pull requests

2 participants