summaryrefslogtreecommitdiffstats
path: root/library/python/pytest
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2026-06-03 18:25:11 +0300
committerrobot-piglet <[email protected]>2026-06-03 19:04:54 +0300
commit39788ecfadedc4f54420727a18ab0ee272a4b5cd (patch)
tree906165102e3d4dfe5ca730abf13229685296e075 /library/python/pytest
parent930ad78081451d5abf6e88600102a0094a279095 (diff)
Intermediate changes
commit_hash:2bc5ec4168daac56ff2c51bcd7a7db66389846fa
Diffstat (limited to 'library/python/pytest')
-rw-r--r--library/python/pytest/plugins/ya.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/python/pytest/plugins/ya.py b/library/python/pytest/plugins/ya.py
index a42a942c39f..8cc27736ba7 100644
--- a/library/python/pytest/plugins/ya.py
+++ b/library/python/pytest/plugins/ya.py
@@ -988,7 +988,7 @@ class TraceReportGenerator(object):
if not msg:
return ""
- if len(msg) > limit:
+ if limit > 0 and len(msg) > limit:
msg = msg[:limit - 3] + "..."
return msg + "[[rst]]"