Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 813061 - dev-python/pytest-mock-3.6.1 fails test tests/test_pytest_mock.py::test_monkeypatch_no_terminal
Summary: dev-python/pytest-mock-3.6.1 fails test tests/test_pytest_mock.py::test_monke...
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2021-09-14 16:21 UTC by Jonathan Lovelace
Modified: 2021-09-22 07:18 UTC (History)
2 users (show)

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


Attachments
dev-python:pytest-mock-3.6.1:20210914-150633.log (dev-python:pytest-mock-3.6.1:20210914-150633.log,16.07 KB, text/x-log)
2021-09-14 16:21 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,7.94 KB, text/plain)
2021-09-14 16:22 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)