From 84a79a8d25279645b6b6b536e1f8748723ef1209 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 17 Aug 2001 13:58:31 +0000 Subject: [PATCH] classic(),metods(): add tests to verify that a bound method without a class has a correct repr(). --- Lib/test/test_descr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index e40e003486..361af58f85 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -763,6 +763,7 @@ def classic(): class E: # *not* subclassing from C foo = C.foo verify(E().foo == C.foo) # i.e., unbound + verify(repr(C.foo.__get__(C())).startswith("