Browse Source

Intermediate changes

robot-piglet 6 months ago
parent
commit
31d385aefa
1 changed files with 4 additions and 0 deletions
  1. 4 0
      library/python/pytest/main.py

+ 4 - 0
library/python/pytest/main.py

@@ -48,6 +48,10 @@ def main():
     m = MonkeyPatch()
     m.setattr(_pytest.assertion.rewrite, "AssertionRewritingHook", rewrite.AssertionRewritingHook)
 
+    # see https://st.yandex-team.ru/DEVTOOLSSUPPORT-50337
+    m.setattr(_pytest.assertion.truncate, "DEFAULT_MAX_LINES", 16)
+    m.setattr(_pytest.assertion.truncate, "DEFAULT_MAX_CHARS", 32 * 80)
+
     prefix = '__tests__.'
 
     test_modules = [