commit: 0166d75e7bf24da735bf15d951381c169053ed05
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 8 10:35:05 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 8 11:09:48 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0166d75e
dev-python/pydantic: Fix test failures due to pytest plugins
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pydantic/pydantic-1.9.0.ebuild | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dev-python/pydantic/pydantic-1.9.0.ebuild
b/dev-python/pydantic/pydantic-1.9.0.ebuild
index 30c3c8a83e4c..45242111e134 100644
--- a/dev-python/pydantic/pydantic-1.9.0.ebuild
+++ b/dev-python/pydantic/pydantic-1.9.0.ebuild
@@ -35,6 +35,9 @@ src_prepare() {
}
python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=pytest_mock
+
local EPYTEST_DESELECT=(
# flaky test, known upstream
tests/test_hypothesis_plugin.py::test_can_construct_models_with_all_fields