All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.test.pbcvm.test.test_exceptions_pyc.pyc Maven / Gradle / Ivy

Go to download

Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.

There is a newer version: 2.7.4
Show newest version
??
???Ic
@s?ddkZddkZddkZddkZddkZddkZddklZlZl	Z	dei
fd??YZd?Ze
djoe?ndS(i????N(tTESTFNtunlinktrun_unittesttExceptionTestscBskeZd?Zd?Zd?Zd?Zd?Zd?Zd?Zd?Z	d?Z
d	?Zd
?ZRS(cCsGyddk}t|?Wn&tj
o}|id|?nXdS(Ni????sreloading exceptions: %s(t
exceptionstreloadtImportErrortfail(tselfRte((s dist/Lib/test/test_exceptions.pyt
testReloads
c	Cs?y
|d?Wn!|j
o}t|?}nXy|d??Wn!|j
o}t|?}nX|i||?|i|i|?dS(Ntspam(tstrtassertEqualst__name__(Rtexctexcnameterrtbuf1tbuf2((s dist/Lib/test/test_exceptions.pytraise_catchs
cBs;|ied?|ieeed?|ied?eed?}|i?eed?}ei	}z0y|e_	e
?}Wnej
onXWd|e_	|i?ee?X|ied?|ieedd?|ie
d?|ie
ed	?|ied
?g}|ie|id?|ied?h}|ie|id
?|ied?|ied?|ied?y
e}Wnej
onX|ied?d}xed?D]}||7}q?W|ied?|ied?yddUWnej
onX|ied?|ied?|ied?|ied?|ieeid?|ied?ygd!Wnej
onX|ie d?|ie e!d?|ie"d?ydd}Wne"j
onX|ie#d ?ydd}Wne#j
o	}nXdS("NtAttributeErrortundefined_attributetEOFErrortwtrtIOErrorsthis file does not existRtundefined_modulet
IndexErrori
tKeyErrortkeytKeyboardInterrupttMemoryErrort	NameErrort
OverflowErrorii?tRuntimeErrortSyntaxErrors/
tIndentationErrortTabErrortSystemErrort
SystemExitit	TypeErrort
ValueErrori'tZeroDivisionErrort	Exception(($RRtassertRaisestgetattrtsysRtopenRtclosetstdint	raw_inputRRRt
__import__Rt__getitem__RRR R!tundefined_variableR"trangeR#R$R%R&R'R(texitR)R*tchrR+R,(Rtfpt	savestdintxtdummyR	((s dist/Lib/test/test_exceptions.pyttestRaising$sp
		
		


cs]?fd?}d}tiid?p||d?nd}||d?|dd?dS(Ncskyt|dd?WnCtj
o7}|i|jo?id||if?qgnX?id?dS(Ns
texecsexpected %s, got %ss"failed to get expected SyntaxError(tcompileR$tmsgR(tsrcRAR	(R(s dist/Lib/test/test_exceptions.pytckmsgys#s\while 1:
            try:
                pass
            finally:
                continuetjavas0'continue' not supported inside 'finally' clausesHif 1:
        try:
            continue
        except:
            passs'continue' not properly in loops	continue
(R/tplatformt
startswith(RRCts((Rs dist/Lib/test/test_exceptions.pyttestSyntaxErrorMessageus

cs`ddd??Y???fd?}??fd?}tiid?p|?|?ndS(NtBadExceptioncBseZd?ZRS(cSs
td?dS(Nscan't instantiate BadException(R#(tself_((s dist/Lib/test/test_exceptions.pyt__init__?s(Rt
__module__RK(((s dist/Lib/test/test_exceptions.pyRI?scs?ddk}y|i?d?Wnmtj
oa}ti?\}}}|ii}?i|id??i	|i
idti
d??nX?id?dS(Ni????it
test_capi1ttest_exceptionstpysExpected exception(t	_testcapitraise_exceptionR)R/texc_infottb_frametf_codeR
tco_nametassert_tco_filenametendswithtostextsepR(RPRRttbtco(RIR(s dist/Lib/test/test_exceptions.pyRM?s)cs?ddk}y|i?d?Wn?tj
o?}ti?\}}}|ii}?i|id??i	|i
idti
d??|iii}?i|id?nX?id?dS(Ni????iRKRNROt
test_capi2sExpected exception(RPRQR#R/RRRSRTR
RURVRWRXRYRZtf_backR(RPRRR[R\tco2(RIR(s dist/Lib/test/test_exceptions.pyR]?s$RD((R/RERF(RRMR]((RIRs dist/Lib/test/test_exceptions.pyttestSettingException?scCs?ytWntj
onuX|ittd??d?|ittdd??d?|itdd?id?|itdd?id?dS(Ni?t1001tmessages[Error 1001] messagei(tWindowsErrorR!tfailUnlessEqualRterrnotwinerror(R((s dist/Lib/test/test_exceptions.pyttest_WindowsError?sc
Cs?td+hdd<d,dd<dd	<d
d<ddRHR`RgR?R?R?R?R?(((s dist/Lib/test/test_exceptions.pyR
s				Q		&	
	e		
	cCstt?dS(N(RR(((s dist/Lib/test/test_exceptions.pyt	test_mainUst__main__(RYR/tunittesttwarningsR?R?ttest.test_supportRRRtTestCaseRR?R(((s dist/Lib/test/test_exceptions.pyss?I	





© 2015 - 2025 Weber Informatics LLC | Privacy Policy