From c7aacc96bbeae1590342f6b10f2364751f187c0c Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sun, 14 Jul 2019 22:21:15 +0300 Subject: [PATCH] saferepr: Remove unused setting of max_other max_other is used by the superclass repr_instance, but we override it and use maxsize instead. --- src/_pytest/_io/saferepr.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/_pytest/_io/saferepr.py b/src/_pytest/_io/saferepr.py index 5a4c76b4b..a97411876 100644 --- a/src/_pytest/_io/saferepr.py +++ b/src/_pytest/_io/saferepr.py @@ -26,7 +26,6 @@ class SafeRepr(reprlib.Repr): super().__init__() self.maxstring = maxsize self.maxsize = maxsize - self.maxother = 160 def repr(self, x): return self._callhelper(reprlib.Repr.repr, self, x)