HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: //usr/local/lib/python2.7/test/test_typechecks.pyc
�
N��ac@s�dZddlZddlmZdefd��YZddd��YZdefd	��YZd
ejfd��YZ	d�Z
ed
kr�ej�ndS(s7Unit tests for __instancecheck__ and __subclasscheck__.i����N(ttest_supporttABCcBseZd�Zd�ZRS(cs/t�fd�tt|�|jg�D��S(s Implement isinstance(inst, cls).c3s|]}�j|�VqdS(N(t__subclasscheck__(t.0tc(tcls(s0/usr/local/lib/python2.7/test/test_typechecks.pys	<genexpr>s(tanytsetttypet	__class__(Rtinst((Rs0/usr/local/lib/python2.7/test/test_typechecks.pyt__instancecheck__	scsE|jjdt��t|g�B�t�fd�|j�D��S(sImplement issubclass(sub, cls).t__subclass__c3s|]}|�kVqdS(N((RR(t
candidates(s0/usr/local/lib/python2.7/test/test_typechecks.pys	<genexpr>s(t__dict__tgetRRtmro(Rtsub((R
s0/usr/local/lib/python2.7/test/test_typechecks.pyRs%(t__name__t
__module__RR(((s0/usr/local/lib/python2.7/test/test_typechecks.pyRs	tIntegercBseZeZeeg�ZRS((RRRt
__metaclass__RtintR(((s0/usr/local/lib/python2.7/test/test_typechecks.pyRstSubIntcBseZRS((RR(((s0/usr/local/lib/python2.7/test/test_typechecks.pyRstTypeChecksTestcBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs6|jtjt�t�|jtjt�t�dS(N(tassertEqualRRRtTruetfloattFalse(tself((s0/usr/local/lib/python2.7/test/test_typechecks.pyttestIsSubclassInternal"scCsn|jttt�t�|jtttf�t�|jttt�t�|jtttf�t�dS(N(Rt
issubclassRRRRR(R((s0/usr/local/lib/python2.7/test/test_typechecks.pyttestIsSubclassBuiltin&scCsn|jtdt�t�|jtdtf�t�|jtdt�t�|jtdtf�t�dS(Ni*g��Q�	@(Rt
isinstanceRRR(R((s0/usr/local/lib/python2.7/test/test_typechecks.pyttestIsInstanceBuiltin,scCs?|jtt�t�t�|jtt�tf�t�dS(N(RR!RR(R((s0/usr/local/lib/python2.7/test/test_typechecks.pyttestIsInstanceActual2scCs9|jttt�t�|jtttf�t�dS(N(RRRR(R((s0/usr/local/lib/python2.7/test/test_typechecks.pyttestIsSubclassActual6scCs�|jttt�t�|jtttf�t�|jttt�t�|jtttf�t�|jttt�t�|jtttf�t�|jttt�t�|jtttf�t�|jtt�t�t�|jtt�tf�t�|jtt�t�t�|jtt�tf�t�|jtdt�t�|jtdtf�t�dS(Ni*(RRRRRRRR!(R((s0/usr/local/lib/python2.7/test/test_typechecks.pyttestSubclassBehavior:scCs|ddd��Y}d|fd��Y}|jd|�|j|�|�|jtt|��|jt||��dS(NtXcBseZd�Zd�ZRS(cSstS(N(R(RR
((s0/usr/local/lib/python2.7/test/test_typechecks.pyRMscSstS(N(R(RR((s0/usr/local/lib/python2.7/test/test_typechecks.pyROs(RRRR(((s0/usr/local/lib/python2.7/test/test_typechecks.pyR&Ls	tSubcBseZRS((RR(((s0/usr/local/lib/python2.7/test/test_typechecks.pyR'Qsi((tassertNotIsInstancetassertIsInstancetassertFalseRRt
assertTrue(RR&R'((s0/usr/local/lib/python2.7/test/test_typechecks.pyt
test_oldstyleJs(	RRRR R"R#R$R%R,(((s0/usr/local/lib/python2.7/test/test_typechecks.pyR s						cCstjt�dS(N(Rtrun_unittestR(((s0/usr/local/lib/python2.7/test/test_typechecks.pyt	test_mainXst__main__((
t__doc__tunittestttestRRRRRtTestCaseRR.Rtmain(((s0/usr/local/lib/python2.7/test/test_typechecks.pyt<module>s
8