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