| Server IP : 118.27.122.248 / Your IP : 216.73.217.6 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python27/lib64/python2.7/test/ |
Upload File : |
� �q2_c @ 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( s9 /opt/alt/python27/lib64/python2.7/test/test_typechecks.pys <genexpr> s ( t anyt sett typet __class__( R t inst( ( R s9 /opt/alt/python27/lib64/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( s9 /opt/alt/python27/lib64/python2.7/test/test_typechecks.pys <genexpr> s ( t __dict__t getR R t mro( R t sub( ( R s9 /opt/alt/python27/lib64/python2.7/test/test_typechecks.pyR s %( t __name__t __module__R R ( ( ( s9 /opt/alt/python27/lib64/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 ( ( ( s9 /opt/alt/python27/lib64/python2.7/test/test_typechecks.pyR s t SubIntc B s e Z RS( ( R R ( ( ( s9 /opt/alt/python27/lib64/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( ( s9 /opt/alt/python27/lib64/python2.7/test/test_typechecks.pyt testIsSubclassInternal"