Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923140 - dev-python/pytest-mock-3.12.0 fails tests
Summary: dev-python/pytest-mock-3.12.0 fails tests
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: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-01-28 16:21 UTC by Agostino Sarubbo
Modified: 2024-02-03 15:02 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,90.25 KB, text/plain)
2024-01-28 16:21 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-01-28 16:21:37 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pytest-mock-3.12.0 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM
Info about the system: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-28 16:21:40 UTC
Created attachment 883473 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-28 16:21:41 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None] - AssertionError
FAILED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The Castle of aaarrrrggh] - AssertionError
FAILED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[] - AssertionError
FAILED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f] - AssertionError
FAILED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name - AssertionError
SKIPPED [1] tests/test_pytest_mock.py:820: could not import 'mock': No module named 'mock'
import 'mock': No module named 'mock')                                  [64/82]
Comment 3 Paolo Pedroni 2024-01-31 13:30:27 UTC
Not just on MUSL. I get this on "regular" installation.
Comment 4 Larry the Git Cow gentoo-dev 2024-02-03 15:02:49 UTC
The bug has been closed via the following commit(s):

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

commit d5be907debc59e876779de7a8915a687a5899cf0
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-02-03 15:00:07 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-02-03 15:01:46 +0000

    dev-python/pytest-mock: Backport a test fix
    
    Closes: https://bugs.gentoo.org/923140
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../files/pytest-mock-3.12.0-test.patch            | 34 ++++++++++++++++++++++
 dev-python/pytest-mock/pytest-mock-3.12.0.ebuild   |  7 ++++-
 2 files changed, 40 insertions(+), 1 deletion(-)