You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stderr output causes test discovery to show as failed #7095
python /root/.vscode-server/extensions/ms-python.python-2019.8.30787/pythonFiles/testing_tools/run_adapter.py discover pytest -- -s --cache-clear
Test Discovery failed:
Error: You are using pip version 19.0.3, however version 19.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Upgrading pip to remove the warning fixes the issue. However, this is but a warning and should not cause test discovery to fail (or, as I suspect in this case, to just display as failed).
Steps to reproduce:
Have running pytest output some kind of warning to stderr.
Hello Alex Kirszenberg (@alexkirsz) 👋 Thank you for reaching out. I tried reproducing your issue by writing to stderr inside a test in multiple ways, but pytest discovered and ran the tests without issues.
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.
Activity
kimadeline commentedon Aug 26, 2019
Hello Alex Kirszenberg (@alexkirsz) 👋 Thank you for reaching out. I tried reproducing your issue by writing to stderr inside a test in multiple ways, but
pytestdiscovered and ran the tests without issues.📋 Here's the content of my test file:
pip uses
logger.warningto display their message (see their repo), it shouldn't have any influence on test discovery.Could you please provide repro steps and/or sample code?
brettcannon commentedon Oct 9, 2019
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.