This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou
Date 2008-01-20.14:16:30
SpamBayes Score 0.03444163
Marked as misclassified No
Message-id <1200838592.82.0.0545990493887.issue1876@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-01-20 14:16:32pitrousetspambayes_score: 0.0344416 -> 0.03444163
recipients: + pitrou
2008-01-20 14:16:32pitrousetspambayes_score: 0.0344416 -> 0.0344416
messageid: <1200838592.82.0.0545990493887.issue1876@psf.upfronthosting.co.za>
2008-01-20 14:16:31pitroulinkissue1876 messages
2008-01-20 14:16:30pitroucreate