Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888215 - dev-python/pytest-mock-3.10.0 fails tests (DASH-SYSTEM): ModuleNotFoundError: No module named py.code; py is not a package
Summary: dev-python/pytest-mock-3.10.0 fails tests (DASH-SYSTEM): ModuleNotFoundError:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-25 08:04 UTC by Agostino Sarubbo
Modified: 2022-12-25 16:22 UTC (History)
0 users

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


Attachments
build.log (build.log,82.63 KB, text/plain)
2022-12-25 08:05 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 2022-12-25 08:04:57 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pytest-mock-3.10.0 fails tests (DASH-SYSTEM).
Discovered on: amd64 (internal ref: dash_tinderbox)

NOTE:
(DASH-SYSTEM) in the summary means that the bug was found on a machine that runs /bin/sh as dash but this bug MAY or MAY NOT BE related to dash.
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-25 08:05:00 UTC
Created attachment 844871 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-25 08:05:00 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E   ModuleNotFoundError: No module named 'py.code'; 'py' is not a package
FAILED tests/test_pytest_mock.py::test_monkeypatch_ini - AssertionError
SKIPPED [1] tests/test_pytest_mock.py:722: could not import 'mock': No module named 'mock'
tests/test_pytest_mock.py::test_standalone_mock SKIPPED (could not import 'mock': No module named 'mock') [60/78]
Comment 3 Larry the Git Cow gentoo-dev 2022-12-25 16:22:22 UTC
The bug has been closed via the following commit(s):

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

commit a7133a4442c67b7db964b81bd94e2058561dd8d9
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-12-25 16:21:18 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-12-25 16:21:18 +0000

    dev-python/pytest-mock: Remove obsolete py.code import
    
    Closes: https://bugs.gentoo.org/888215
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pytest-mock/pytest-mock-3.10.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)