Plese keep the thread on the list.
On 3/8/24 6:36 AM, Daniel Azubuine wrote:
Sir, I get this error /home/daniel/Documents/repos/mailman/mailman/.tox/qa/bin/python: can't open file '/home/daniel/Documents/repos/mailman/mailman/setup.py': [Errno 2] No such file or directory ERROR: invocation failed (exit code 2)/ _______________________________________________ summary
ERROR: qa: InvocationError for command /home/daniel/Documents/repos/mailman/mailman/.tox/qa/bin/python /home/daniel/Documents/repos/mailman/mailman/setup.py --name (exited with code 2) when i run tox -e qa.
What is your tox version (tox --version)?
You shouldn't need this, but adding
skipdist = True
in the [tox] section of tox.ini may help.
I also get this when i run tox -e py310-diffcov
src/mailman/interfaces/listmanager.py (75.0%): Missing lines 37
Total: 4 lines Missing: 1 line Coverage: 75%
ERROR: InvocationError for command /home/daniel/Documents/repos/mailman/mailman/.tox/py310-diffcov/bin/diff-cover coverage.xml --fail-under=100 --compare-branch origin/master (exited with code 1)
This is expected output in this case. Line 37 in your src/mailman/interfaces/listmanager.py is not covered by any tests. Modifying the test_cannot_create_a_list_twice test in src/mailman/model/tests/test_listmanager.py to use assertRaisesRegex rather than assertRaises may help. See <https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRaisesRegex>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan