Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836458 - portage installs its own unittest (test_*) modules which aren't useful
Summary: portage installs its own unittest (test_*) modules which aren't useful
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-31 03:14 UTC by SpanKY
Modified: 2022-03-31 16:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2022-03-31 03:14:30 UTC
$ qlist sys-apps/portage | grep test_ | grep -v pyc$ | sort
/usr/lib/python3.8/site-packages/portage/tests/bin/test_dobin.py
/usr/lib/python3.8/site-packages/portage/tests/bin/test_dodir.py
/usr/lib/python3.8/site-packages/portage/tests/bin/test_doins.py
/usr/lib/python3.8/site-packages/portage/tests/bin/test_eapi7_ver_funcs.py
/usr/lib/python3.8/site-packages/portage/tests/bin/test_filter_bash_env.py
...
Comment 1 Mike Gilbert gentoo-dev 2022-03-31 16:50:41 UTC
It's pretty common for python packages to install their test modules.

Bug 366203 was about banning installation of "test" or "tests" directories at the top-level under site-packages. Portage does not do that; they are installed under the "portage" namespace.

Someone might want to run the test suite from an installed copy of Portage. That is currently possible to do like so:

python3.10 -m portage.tests.runTests