diff options
author | Guido van Rossum <guido@python.org> | 2001-08-16 20:41:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-16 20:41:56 (GMT) |
commit | 501c7c7d0eb8c8fb1a9384092efed0141052f324 (patch) | |
tree | 99b329657928c633cb364d0e357b9ea0c7426662 /Lib | |
parent | 2907fe6ce7376e73d84c8a29dedd37d8b3e4a225 (diff) | |
download | cpython-501c7c7d0eb8c8fb1a9384092efed0141052f324.zip cpython-501c7c7d0eb8c8fb1a9384092efed0141052f324.tar.gz cpython-501c7c7d0eb8c8fb1a9384092efed0141052f324.tar.bz2 |
classobject.c:instancemethod_descr_get(): when a bound method is
assigned to a class variable and then accessed via an instance, it
should not be rebound.
test_descr.py:methods(): test for the condition above.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_descr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 4d1f817..f524dba 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -862,7 +862,7 @@ def methods(): d2 = D(2) verify(d2.foo() == 2) verify(d2.boo() == 2) - verify(d2.goo() == 2) + verify(d2.goo() == 1) def specials(): # Test operators like __hash__ for which a built-in default exists |