From a9c54a1f8001adf6111f1c9eab52761f39bbc3fe Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 19 Mar 2022 08:37:29 -0300 Subject: [PATCH] Add note to saferepr_unlimited --- src/_pytest/_io/saferepr.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_pytest/_io/saferepr.py b/src/_pytest/_io/saferepr.py index 07c726aa6..a27e8c2a6 100644 --- a/src/_pytest/_io/saferepr.py +++ b/src/_pytest/_io/saferepr.py @@ -114,6 +114,9 @@ def saferepr_unlimited(obj: object) -> str: will be represented with a short exception info. This function is a wrapper around simple repr. + + Note: a cleaner solution would be to alter ``saferepr``this way + when maxsize=None, but that might affect some other code. """ try: return repr(obj)