Message8398
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)) |
|
Date |
User |
Action |
Args |
2014-05-13 20:08:48 | zyasoft | set | messageid: <1400011728.66.0.809708895974.issue2055@psf.upfronthosting.co.za> |
2014-05-13 20:08:48 | zyasoft | set | recipients:
+ zyasoft, pjenvey, Arfrever, gthank |
2014-05-13 20:08:48 | zyasoft | link | issue2055 messages |
2014-05-13 20:08:48 | zyasoft | create | |
|