Message8398

Author zyasoft
Recipients Arfrever, gthank, pjenvey, zyasoft
Date 2014-05-13.20:08:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400011728.66.0.809708895974.issue2055@psf.upfronthosting.co.za>
In-reply-to
Content
Interesting, I was reviewing test_abc.py and I see that there was a related problem in CPython earlier, as seen in the commented-out code. Of course this commented-out code actually works on both CPython and Jython now, so we have to fix Arfrever's case:

    def test_isinstance_class(self):
        class A:
            __metaclass__ = abc.ABCMeta
        class OldstyleClass:
            pass
        self.assertFalse(isinstance(OldstyleClass, A))
        self.assertTrue(isinstance(OldstyleClass, type(OldstyleClass)))
        self.assertFalse(isinstance(A, OldstyleClass))
        # This raises a recursion depth error, but is low-priority:
        # self.assertTrue(isinstance(A, abc.ABCMeta))
History
Date User Action Args
2014-05-13 20:08:48zyasoftsetmessageid: <1400011728.66.0.809708895974.issue2055@psf.upfronthosting.co.za>
2014-05-13 20:08:48zyasoftsetrecipients: + zyasoft, pjenvey, Arfrever, gthank
2014-05-13 20:08:48zyasoftlinkissue2055 messages
2014-05-13 20:08:48zyasoftcreate