Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 813061

Summary: dev-python/pytest-mock-3.6.1 fails test tests/test_pytest_mock.py::test_monkeypatch_no_terminal
Product: Gentoo Linux Reporter: Jonathan Lovelace <kingjon3377>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-python:pytest-mock-3.6.1:20210914-150633.log
emerge-info.txt

Description Jonathan Lovelace 2021-09-14 16:21:56 UTC
Created attachment 739309 [details]
dev-python:pytest-mock-3.6.1:20210914-150633.log

On rebuilding to drop Python 3.8 support, =dev-python/pytest-mock-3.6.1 fails its test phase, specifically the test tests/test_pytest_mock.py::test_monkeypatch_no_terminal. If I'm reading the output right, this tests expects no output from a subprocess, but it got some output beginning "pytest-xprocess reminder::Be sure to terminate".

Full build log and emerge --info attached.
Comment 1 Jonathan Lovelace 2021-09-14 16:22:10 UTC
Created attachment 739312 [details]
emerge-info.txt
Comment 2 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2021-09-17 10:27:07 UTC
The issue arises from installed `dev-python/pytest-xprocess`

Searching for a way to disable xprocess pytest plugin without blocking...
`-p no:xprocess` didn't work
Comment 3 Larry the Git Cow gentoo-dev 2021-09-22 07:18:29 UTC
The bug has been closed via the following commit(s):

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

commit 8034ddfe19a8668dcd1fe00f94f5f7d0679ab05a
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2021-09-22 07:18:09 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2021-09-22 07:18:12 +0000

    dev-python/pytest-mock: fix running with pytest-xprocess installed
    
    Closes: https://bugs.gentoo.org/813061
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-python/pytest-mock/pytest-mock-3.6.1.ebuild | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)