Initial pytest 'no module test' error #252
Unanswered
zaxhutchinson
asked this question in
Q&A
Replies: 2 comments
-
Best to file errors like these as issues instead of opening a discussion. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I doubt this is a bug, but rather an issue with the environment in Manjaro. @zaxhutchinson Try installing python-tests and try again. In some cases it looks like Arch based distros don't install the correct python-tests dependency. See the old comment in this thread https://aur.archlinux.org/packages/python-iniparse "Without the package python-tests I have an error when I try to install this package. Maybe this should be added to the dependency list?" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First install. Followed linux instructions. Ran into an error(?) running pytest. Got the following error and coverage failed at 39%.
I don't know much about the test module. I can't even import it on my system.
I changed the call in name == "main" to just:
unittest.main()
since the class inherits from unittest. And it worked (89% coverage). But I'm not sure if the original call had different magic.
OS: Manjaro
Python: 3.10.4
Beta Was this translation helpful? Give feedback.
All reactions