Current File : //home/strato/chroot/opt/RZpython2/lib/python2.7/test/test_typechecks.pyo |
�
��#ec @ s� d Z d d l Z d d l m Z d e f d � � YZ d d d � � YZ d e f d � � YZ d
e j f d � � YZ d � Z
e d
k r� e j � n d S( s7 Unit tests for __instancecheck__ and __subclasscheck__.i����N( t test_supportt ABCc B s e Z d � Z d � Z RS( c s/ t � f d � t t | � | j g � D� � S( s Implement isinstance(inst, cls).c 3 s | ] } � j | � Vq d S( N( t __subclasscheck__( t .0t c( t cls( s4 /opt/RZpython2/lib/python2.7/test/test_typechecks.pys <genexpr> s ( t anyt sett typet __class__( R t inst( ( R s4 /opt/RZpython2/lib/python2.7/test/test_typechecks.pyt __instancecheck__ s c sE | j j d t � � t | g � B� t � f d � | j � D� � S( s Implement issubclass(sub, cls).t __subclass__c 3 s | ] } | � k Vq d S( N( ( R R ( t
candidates( s4 /opt/RZpython2/lib/python2.7/test/test_typechecks.pys <genexpr> s ( t __dict__t getR R t mro( R t sub( ( R
s4 /opt/RZpython2/lib/python2.7/test/test_typechecks.pyR s %( t __name__t
__module__R R ( ( ( s4 /opt/RZpython2/lib/python2.7/test/test_typechecks.pyR s t Integerc B s e Z e Z e e g � Z RS( ( R R R t
__metaclass__R t intR ( ( ( s4 /opt/RZpython2/lib/python2.7/test/test_typechecks.pyR s t SubIntc B s e Z RS( ( R R ( ( ( s4 /opt/RZpython2/lib/python2.7/test/test_typechecks.pyR s t TypeChecksTestc B sG e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s6 | j t j t � t � | j t j t � t � d S( N( t assertEqualR R R t Truet floatt False( t self( ( s4 /opt/RZpython2/lib/python2.7/test/test_typechecks.pyt testIsSubclassInternal"