diff options
author | Antoine Pitrou <antoine@python.org> | 2024-03-18 09:22:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 09:22:19 (GMT) |
commit | fcb230180faff828aa67ca2ee1aa94fc522e6daa (patch) | |
tree | 506950e0cd5d6b9aed881395189988c29b6a085c /Lib/test/support/script_helper.py | |
parent | 2ac1b48a044429d7a290310348b53a87b9f2033a (diff) | |
download | cpython-fcb230180faff828aa67ca2ee1aa94fc522e6daa.zip cpython-fcb230180faff828aa67ca2ee1aa94fc522e6daa.tar.gz cpython-fcb230180faff828aa67ca2ee1aa94fc522e6daa.tar.bz2 |
[3.12] gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601) (#116929)
(cherry picked from commit ebf29b3)
Co-authored-by: Donghee Na <donghee.na@python.org>
Diffstat (limited to 'Lib/test/support/script_helper.py')
-rw-r--r-- | Lib/test/support/script_helper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/support/script_helper.py b/Lib/test/support/script_helper.py index c2b43f4..565f3b5 100644 --- a/Lib/test/support/script_helper.py +++ b/Lib/test/support/script_helper.py @@ -64,8 +64,8 @@ class _PythonRunResult(collections.namedtuple("_PythonRunResult", """Helper for reporting Python subprocess run results""" def fail(self, cmd_line): """Provide helpful details about failed subcommand runs""" - # Limit to 80 lines to ASCII characters - maxlen = 80 * 100 + # Limit to 300 lines of ASCII characters + maxlen = 300 * 100 out, err = self.out, self.err if len(out) > maxlen: out = b'(... truncated stdout ...)' + out[-maxlen:] |