New submission from Antoine Pitrou: In test_operator we find the following lines:
class C(object): def __getattr(self, name): raise SyntaxError self.failUnlessRaises(AttributeError, operator.attrgetter('foo'), C()) Obviously "__getattr" has no effect. However, when changing it to "__getattr__", the test fails. Is there is any motivation for this test in the first place? If yes, why the typo and why the error when the typo is corrected? ---------- components: Tests messages: 61297 nosy: pitrou severity: normal status: open title: bogus attrgetter test in test_operator type: behavior versions: Python 2.6 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1876> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com