From 42db2b03f76d04ae24988604a3db2966dcdc0a5c Mon Sep 17 00:00:00 2001 From: Itxaso Aizpurua Date: Sat, 8 Oct 2022 09:15:58 +0200 Subject: [PATCH] Not skip maxsize control of SafeRepr --- src/_pytest/_io/saferepr.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/_io/saferepr.py b/src/_pytest/_io/saferepr.py index 6f3d12df5..c70187223 100644 --- a/src/_pytest/_io/saferepr.py +++ b/src/_pytest/_io/saferepr.py @@ -62,6 +62,7 @@ class SafeRepr(reprlib.Repr): s = ascii(x) else: s = super().repr(x) + except (KeyboardInterrupt, SystemExit): raise except BaseException as exc: