From a60c2fe4807e89a5844979fe46b3ea39572fc3be Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 12 Mar 2015 21:56:08 +0200 Subject: Issue #23641: Cleaned out legacy dunder names from tests and docs. Fixed 2 to 3 porting bug in pynche.ColorDB. --- Lib/test/test_dynamicclassattribute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_dynamicclassattribute.py') diff --git a/Lib/test/test_dynamicclassattribute.py b/Lib/test/test_dynamicclassattribute.py index 079d6c32241..bc6a39bb376 100644 --- a/Lib/test/test_dynamicclassattribute.py +++ b/Lib/test/test_dynamicclassattribute.py @@ -158,9 +158,9 @@ class PropertyTests(unittest.TestCase): # check that the DynamicClassAttribute's __isabstractmethod__ descriptor does the # right thing when presented with a value that fails truth testing: class NotBool(object): - def __nonzero__(self): + def __bool__(self): raise ValueError() - __len__ = __nonzero__ + __len__ = __bool__ with self.assertRaises(ValueError): class C(object): def foo(self): -- cgit v1.2.3