Lines Matching refs:cls2
3198 for cls2 in C, D, E, F:
3200 x.__class__ = cls2
3201 self.assertIs(x.__class__, cls2)
3261 for cls, cls2 in ((G, H), (G, I), (I, H), (Q, R), (R, Q)):
3264 x.__class__ = cls2
3265 self.assertIs(x.__class__, cls2,
3266 "assigning %r as __class__ for %r silently failed" % (cls2, x))
3273 for cls2 in G, J, K, L, M, N, P, R, list, Int:
3274 if cls is cls2:
3276 cant(cls(), cls2)
3438 cls2 = p.loads(s)
3439 self.assertIs(cls2, cls)
3468 cls2 = copy.deepcopy(cls)
3469 self.assertIs(cls2, cls)