1 |
commit: d22cedb2fad2f5c31c7916171f88c9b71231cb16 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 28 21:00:40 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 28 21:50:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d22cedb2 |
7 |
|
8 |
dev-python/pytest: Disable plugin autoload for reliable testing |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest/pytest-6.2.5-r2.ebuild | 4 +++- |
13 |
1 file changed, 3 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-python/pytest/pytest-6.2.5-r2.ebuild b/dev-python/pytest/pytest-6.2.5-r2.ebuild |
16 |
index e1ab42664254..4558e9276b96 100644 |
17 |
--- a/dev-python/pytest/pytest-6.2.5-r2.ebuild |
18 |
+++ b/dev-python/pytest/pytest-6.2.5-r2.ebuild |
19 |
@@ -53,7 +53,9 @@ src_test() { |
20 |
python_test() { |
21 |
distutils_install_for_testing --via-root |
22 |
|
23 |
- "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky \ |
24 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
25 |
+ |
26 |
+ "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p xdist \ |
27 |
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || |
28 |
die "Tests failed with ${EPYTHON}" |
29 |
} |