-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Python 3.8: error: unrecognized arguments: -rs #5536
Comments
Aha, just found this is a duplicate of the already fixed #5523 :) And a workaround in the meantime: - - pytest -rs test.py
+ - pytest -r s test.py https://travis-ci.org/hugovk/test/builds/553161541 Thanks! |
@hugovk you missed the |
The $ pytest -r -s test.py
ERROR: usage: pytest.py [options] [file_or_dir] [file_or_dir] [...]
pytest.py: error: argument -r: expected one argument $ pytest -r s test.py
======================================================= test session starts =======================================================
platform darwin -- Python 3.7.3, pytest-5.0.0, py-1.5.4, pluggy-0.12.0
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
rootdir: /Users/hugo/github/test, inifile: setup.cfg
plugins: xdist-1.29.0, parallel-0.0.9, random-order-1.0.4, flaky-3.5.3, black-0.3.5, timeout-1.3.3, rerunfailures-6.0, cov-2.7.1, forked-1.0.1, requests-mock-1.6.0
collected 2 items
test.py .s [100%]
===Flaky Test Report===
===End Flaky Test Report===
===================================================== short test summary info =====================================================
SKIPPED [1] test.py:9: skip it
=============================================== 1 passed, 1 skipped in 0.05 seconds =============================================== $ pytest -rs test.py # This doesn't work on 3.8 (yet)
======================================================= test session starts =======================================================
platform darwin -- Python 3.7.3, pytest-5.0.0, py-1.5.4, pluggy-0.12.0
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
rootdir: /Users/hugo/github/test, inifile: setup.cfg
plugins: xdist-1.29.0, parallel-0.0.9, random-order-1.0.4, flaky-3.5.3, black-0.3.5, timeout-1.3.3, rerunfailures-6.0, cov-2.7.1, forked-1.0.1, requests-mock-1.6.0
collected 2 items
test.py .s [100%]
===Flaky Test Report===
===End Flaky Test Report===
===================================================== short test summary info =====================================================
SKIPPED [1] test.py:9: skip it
=============================================== 1 passed, 1 skipped in 0.04 seconds ============================================== |
sorry, my mistake, i missed that the option was |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pip list
from the virtual environment you are usingpytest -rs
errors on on Travis CI with Python 3.8-dev and nightly (both currently Python 3.8.0b1+).Python 2.7, 3.5-3.7, PyPy and PyPy3 work as expected.
pytest --help
on-rs
:It doesn't really matter what's in the test file:
Run it with
-rs
on Python 3.7:But errors on Python 3.8:
Python 3.7:
Python 3.8-dev:
The text was updated successfully, but these errors were encountered: