Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927350 - dev-python/python-dbusmock-0.31.1: Tests failure - missing sys-power/upower dependency
Summary: dev-python/python-dbusmock-0.31.1: Tests failure - missing sys-power/upower d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-20 12:57 UTC by Dustin Polke
Modified: 2024-03-21 15:19 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge--info.txt,22.04 KB, text/plain)
2024-03-20 12:57 UTC, Dustin Polke
Details
Complete build log (build.log,94.79 KB, text/plain)
2024-03-20 12:58 UTC, Dustin Polke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2024-03-20 12:57:05 UTC
Created attachment 887988 [details]
emerge --info

Tests fail:

FAILED tests/test_api_pytest.py::test_dbusmock_test_template - FileNotFoundError: [Errno 2] No such file or directory: 'upower'
================================================================================================================== 1 failed, 133 passed, 35 skipped in 44.71s ===================================================================================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
 * ERROR: dev-python/python-dbusmock-0.31.1::gentoo failed (test phase):
 *   pytest failed with python3.11
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_test
 *   environment, line 4110:  Called distutils-r1_src_test
 *   environment, line 2032:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  761:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3712:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3167:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3165:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line 1258:  Called distutils-r1_run_phase 'python_test'
 *   environment, line 1955:  Called python_test
 *   environment, line 3996:  Called distutils-r1_python_test
 *   environment, line 1893:  Called epytest
 *   environment, line 2589:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n "pytest failed with ${EPYTHON}";

After installing sys-power/upower, the failing test succeeds.
Comment 1 Dustin Polke 2024-03-20 12:58:28 UTC
Created attachment 887989 [details]
Complete build log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-21 14:59:41 UTC
Thanks!
Comment 3 Larry the Git Cow gentoo-dev 2024-03-21 15:19:08 UTC
The bug has been closed via the following commit(s):

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

commit 7d9384f8a06e282e1d47abb1dca865076b73cad6
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-03-21 14:59:52 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-03-21 15:12:33 +0000

    dev-python/python-dbusmock: Add upower test dep
    
    Closes: https://bugs.gentoo.org/927350
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../python-dbusmock-0.31.1-r1.ebuild               | 51 ++++++++++++++++++++++
 1 file changed, 51 insertions(+)