Checking pytest dependencies for astroid
Hello, I was informed that I should perform some software tests. https://github.com/PyCQA/astroid#test Thus I tried the following command out. [Markus_Elfring@fedora lokal]$ pytest astroid Failed to open '/proc/1/fd/2': Permission denied Traceback (most recent call last): File "/usr/bin/pytest", line 33, in <module> sys.exit(load_entry_point('pytest==6.2.2', 'console_scripts', 'pytest')()) … File "/usr/lib64/python3.9/argparse.py", line 1596, in _handle_conflict_error raise ArgumentError(action, message % conflict_string) argparse.ArgumentError: argument --no-cov: conflicting option string: --no-cov How should the mentioned system dependencies be fixed? Regards, Markus
Hello, It seems you're missing "pytest-cov", you should be able to get it (along with other tests requirements) by installing from "requirements_test.txt" with "pip install -r requirements_test.txt". Best regards, Le dim. 24 oct. 2021 à 16:51, Markus Elfring <Markus.Elfring@web.de> a écrit :
Hello,
I was informed that I should perform some software tests. https://github.com/PyCQA/astroid#test
Thus I tried the following command out.
[Markus_Elfring@fedora lokal]$ pytest astroid Failed to open '/proc/1/fd/2': Permission denied Traceback (most recent call last): File "/usr/bin/pytest", line 33, in <module> sys.exit(load_entry_point('pytest==6.2.2', 'console_scripts', 'pytest')()) … File "/usr/lib64/python3.9/argparse.py", line 1596, in _handle_conflict_error raise ArgumentError(action, message % conflict_string) argparse.ArgumentError: argument --no-cov: conflicting option string: --no-cov
How should the mentioned system dependencies be fixed?
Regards, Markus _______________________________________________ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-leave@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ Member address: pierre.sassoulas@gmail.com
I would strongly suggest using tox to run tests without modifying it to use system packages. Sent from my phone with my typo-happy thumbs. Please excuse my brevity On Sun, Oct 24, 2021, 23:24 Markus Elfring <Markus.Elfring@web.de> wrote:
It seems you're missing "pytest-cov", …
[Markus_Elfring@fedora lokal]$ rpm -qi python3-pytest-cov … Version : 2.12.1 Release : 1.fc34 … Install Date: Fr 22 Okt 2021 19:46:06 CEST …
Regards, Markus _______________________________________________ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-leave@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ Member address: graffatcolmingov@gmail.com
What was the exact output provided by pip? Sent from my phone with my typo-happy thumbs. Please excuse my brevity On Mon, Oct 25, 2021, 12:44 Markus Elfring <Markus.Elfring@web.de> wrote:
… with "pip install -r requirements_test.txt".
The command “pytest astroid” failed once more on my system also after the execution of the suggested software installation variant.
Regards, Markus _______________________________________________ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-leave@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ Member address: graffatcolmingov@gmail.com
participants (3)
-
Ian Stapleton Cordasco
-
Markus Elfring
-
Pierre Sassoulas