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)