Add a test for the final branch in repr.Repr.repr1(), which deals with
a default repr() that's longer than 20 characters.
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py
index 1281b1f..c23fe77 100644
--- a/Lib/test/test_repr.py
+++ b/Lib/test/test_repr.py
@@ -78,6 +78,11 @@
i3 = ClassWithFailingRepr()
eq(r(i3), ("<ClassWithFailingRepr instance at %x>"%id(i3)))
+ s = r(ClassWithFailingRepr)
+ self.failUnless(s.startswith("<class "))
+ self.failUnless(s.endswith(">"))
+ self.failUnless(s.find("...") == 8)
+
def test_file(self):
fp = open(unittest.__file__)
self.failUnless(repr(fp).startswith(