Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723656 - dev-python/pytest-mock fails tests
Summary: dev-python/pytest-mock fails tests
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2020-05-18 10:14 UTC by Agostino Sarubbo
Modified: 2021-10-25 16:29 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,25.31 KB, text/plain)
2020-05-18 10:14 UTC, Agostino Sarubbo
Details
build.log (3.3.1, ppc64) (pytest-mock-3.3.1:20201124-224337.log,119.12 KB, text/plain)
2020-11-24 22:49 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-05-18 10:14:10 UTC
This is an auto-filed bug because dev-python/pytest-mock fails tests.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-18 10:14:19 UTC
Created attachment 640046 [details]
build.log

build log and emerge --info
Comment 2 ernsteiswuerfel archtester 2020-11-24 22:49:14 UTC
Created attachment 674767 [details]
build.log (3.3.1, ppc64)

3.3.1 fails 16 tests on ppc64.

[...]
FAILED tests/test_pytest_mock.py::test_mocker_aliases[ANY] - ValueError: unknown configuration value:...
FAILED tests/test_pytest_mock.py::test_mocker_aliases[call] - ValueError: unknown configuration value...
FAILED tests/test_pytest_mock.py::test_mocker_aliases[create_autospec] - ValueError: unknown configur...
FAILED tests/test_pytest_mock.py::test_mocker_aliases[MagicMock] - ValueError: unknown configuration ...
FAILED tests/test_pytest_mock.py::test_mocker_aliases[Mock] - ValueError: unknown configuration value...
FAILED tests/test_pytest_mock.py::test_mocker_aliases[mock_open] - ValueError: unknown configuration ...
FAILED tests/test_pytest_mock.py::test_mocker_aliases[NonCallableMock] - ValueError: unknown configur...
FAILED tests/test_pytest_mock.py::test_mocker_aliases[PropertyMock] - ValueError: unknown configurati...
FAILED tests/test_pytest_mock.py::test_mocker_aliases[sentinel] - ValueError: unknown configuration v...
FAILED tests/test_pytest_mock.py::test_monkeypatch_native - AssertionError
FAILED tests/test_pytest_mock.py::test_plain_stopall - Failed: nomatch: '* 1 passed in *'
FAILED tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc - AssertionError
FAILED tests/test_pytest_mock.py::test_used_with_class_scope - Failed: nomatch: '* 1 passed in *'
FAILED tests/test_pytest_mock.py::test_used_with_module_scope - Failed: nomatch: '* 1 passed in *'
FAILED tests/test_pytest_mock.py::test_used_with_package_scope - Failed: nomatch: '* 1 passed in *'
FAILED tests/test_pytest_mock.py::test_used_with_session_scope - Failed: nomatch: '* 1 passed in *'
==================== 16 failed, 3 passed, 4 skipped, 1 warning, 39 errors in 10.57s ====================
 * ERROR: dev-python/pytest-mock-3.3.1::gentoo failed (test phase):
 *   Tests fail with python3.7
Comment 3 Michael Seifert 2021-10-25 14:31:41 UTC
pytest-mock-3.6.1 is the only version in Portage at the time of writing. I couldn't reproduce test errors for pytest-mock-3.6.1 on amd64 for any supported Python version (Python 3.8 through 3.10 and PyPy3).

Is this bug still relevant?
Comment 4 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2021-10-25 16:29:02 UTC
After another round of testing, just to be sure, without those failures, I think we can close this bug.
In case this bug reappears (or any other), please open a new bug.
Thank you all.