From: Guido van Rossum Date: Fri, 17 Aug 2001 13:58:31 +0000 (+0000) Subject: classic(),metods(): add tests to verify that a bound method without a X-Git-Tag: v2.2a3~477 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84a79a8d25279645b6b6b536e1f8748723ef1209;p=python classic(),metods(): add tests to verify that a bound method without a class has a correct repr(). --- 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("