mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/pytest-mock: Disable plugin autoloading during tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -25,12 +25,10 @@ BDEPEND="
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's/runpytest_subprocess(/&"-p","no:xprocess",/' -i tests/test_pytest_mock.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
local -x PYTEST_PLUGINS=pytest_mock,pytest_asyncio.plugin
|
||||
|
||||
if has_version dev-python/mock; then
|
||||
local EPYTEST_DESELECT=(
|
||||
tests/test_pytest_mock.py::test_standalone_mock
|
||||
|
||||
Reference in New Issue
Block a user