summaryrefslogtreecommitdiff
path: root/eclass/python-utils-r1.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 840b820d0056..c535a79cb48e 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1347,6 +1347,15 @@ epytest() {
-o tmp_path_retention_policy=failed
)
+ if has_version ">=dev-python/pytest-8.4.0"; then
+ args+=(
+ # do not repeat (potentially multi-line) exception messages
+ # in the "short summary" section to make it more readable;
+ # we have them in the backtraces anyway
+ --force-short-summary
+ )
+ fi
+
if [[ ! ${PYTEST_DISABLE_PLUGIN_AUTOLOAD} ]]; then
args+=(
# disable the undesirable-dependency plugins by default to