Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739500 - dev-python/psutil-5.7.2: tests failing: ImportError: No module named unittest2
Summary: dev-python/psutil-5.7.2: tests failing: ImportError: No module named unittest2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 737780
  Show dependency tree
 
Reported: 2020-08-29 15:27 UTC by Thomas Deutschmann (RETIRED)
Modified: 2020-08-29 18:21 UTC (History)
1 user (show)

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 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-29 15:27:00 UTC
> >>> Test phase: dev-python/psutil-5.7.2
>  * python2_7: running distutils-r1_run_phase python_test
> Traceback (most recent call last):
>   File "psutil/tests/runner.py", line 46, in <module>
>     from psutil.tests import CI_TESTING
>   File "/var/tmp/portage/dev-python/psutil-5.7.2/work/psutil-5.7.2-python2_7/lib/psutil/tests/__init__.py", line 60, in <module>
>     import unittest2 as unittest  # requires "pip install unittest2"
> ImportError: No module named unittest2
>  * ERROR: dev-python/psutil-5.7.2::gentoo failed (test phase):
>  *   tests failed with python2.7
>  *
>
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-29 17:39:50 UTC
Hmm, apparently they've started requiring it in py2.7 (it was only needed for py2.6 before)...
Comment 2 Larry the Git Cow gentoo-dev 2020-08-29 18:21:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a96c1fa4f41c7d8400abea37ecd4c6b5a4728051

commit a96c1fa4f41c7d8400abea37ecd4c6b5a4728051
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-08-29 17:40:02 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-08-29 18:21:49 +0000

    dev-python/psutil: unittest2 is required for py2.7 now
    
    Closes: https://bugs.gentoo.org/739500
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/psutil/psutil-5.7.2.ebuild | 1 +
 1 file changed, 1 insertion(+)