a  ze؅@sddlZddlZddlZddlZddlmZddlZddlZddlmZddl Z ddl m Z e dZe dZe dZe d Z Gd d d ZGd d d eZe jeed\ZZGdddeZe jeed\ZZGdddeZe jeed\ZZGdddeZe jeed\ZZGdddeZe jeed\Z Z!GdddeZ"e je"ed\Z#Z$GdddeZ%e je%ed\Z&Z'd[ddZ(GdddZ)Gd d d ZGd!d"d"e)Z*e e*\Z+Z,Gd#ddZGd$d%d%e)Z-e e-\Z.Z/Gd&d'd'Z0Gd(d)d)e)Z1e e1\Z2Z3Gd*dde0ZGd+d,d,e)Z4e e4\Z5Z6Gd-dde0Ze(eZ7Gd.d/d/e)Z8e e8\Z9Z:Gd0ddeZe(eZ;Gd1d2d2e)ZGd3d4d4Z?Gd5d6d6e)Z@e e@\ZAZBGd7d8d8ZCe jeCee d9\ZDZEGd:d;d;ZFe jeFee ed<\ZGZHGd=d>d>ZIe jeIee d9\ZJZKGd?d@d@ZLe jeLe7dA\ZMZNGdBdCdCZOe jeOe7dA\ZPZQGdDdEdEZRe jeRe7ee dF\ZSZTGdGdHdHZUe jeUe;dI\ZVZWGdJdKdKZXe(eXdZYGdLddeXZ%e(e%e edMZZGdNdOdOZ[GdPdQdQe[Z\e je\e eYdR\Z]Z^e_ej`dSGdTdUdUe[Zae jeaee eZdV\ZbZcGdWdXdXZde jedeYdY\ZeZfegdZkrehdS)\N)support)mock)util importlibz importlib.abczimportlib.machineryzimportlib.utilc@s,eZdZgZgZddZddZddZdS)InheritanceTestscsRfddjD_tdr>jjfddjD_tjj_ dS)Ncsg|]}tj|qS)getattrabc.0 class_nameselfrP/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_importlib/test_abc.py sz*InheritanceTests.setUp..subclass_namescsg|]}t|qSrr r ) machineryrrr&s) superclass_names superclasseshasattrr rr subclassesr Z_NAME_InheritanceTests__testrr)rrrsetUps   zInheritanceTests.setUpcCs.|jD]"}|t||jd||jqdS)Nz{0} is not a subclass of {1})r assertTrue issubclassrformat)rsubclassrrrtest_subclasses+s  z InheritanceTests.test_subclassescCs.|jD]"}|t|j|d||jqdS)Nz{0} is not a superclass of {1})rrrrr)rZ superclassrrrtest_superclasses1s  z"InheritanceTests.test_superclassesN)__name__ __module__ __qualname__rrrrr rrrrrs rc@seZdZdgZgdZdS)MetaPathFinderFinder)BuiltinImporterFrozenImporter PathFinderWindowsRegistryFinderNr!r"r#rrrrrrr$8sr$)r c@seZdZdgZdgZdS)PathEntryFinderr% FileFinderNr*rrrrr+Csr+c@seZdZdgZdS)ResourceLoaderLoaderN)r!r"r#rrrrrr-Msr-c@seZdZdgZgdZdS) InspectLoaderr.)r&r'ExtensionFileLoaderNr*rrrrr/Vsr/c@seZdZdgZdgZdS)ExecutionLoaderr/r0Nr*rrrrr1`sr1c@seZdZddgZddgZdS) FileLoaderr-r1SourceFileLoaderSourcelessFileLoaderNr*rrrrr2jsr2c@seZdZddgZdgZdS) SourceLoaderr-r1r3Nr*rrrrr5tsr5Fc sFdur|jfddtD}fddtj||fi|DS)Ncsi|]\}}|t|qSrr)r kindZsplitabc)namerr sz'make_abc_subclasses..csi|]}|jr|n|qSr)_KIND)r cls)instrrr8s)r!r items test_utilZ split_frozen)Z base_classr7r;kwargsbaser)r;r7rmake_abc_subclassess  r@c@seZdZeddZdS)ABCTestHarnesscCs|j|j}|}||j_|SN)SPLITr9 __class__ins)rr:rErrrrEs zABCTestHarness.insN)r!r"r#propertyrErrrrrAsrAcseZdZfddZZS)r$cst||SrB)super find_module)rfullnamepathrDrrrHszMetaPathFinder.find_module)r!r"r#rH __classcell__rrrKrr$sc@s$eZdZeeZddZddZdS)MetaPathFinderDefaultsTestscCsF|t|jdd}Wdn1s.0Y||dSNZ something) assertWarnsDeprecationWarningrErH assertIsNonerfoundrrrtest_find_modules ,z,MetaPathFinderDefaultsTests.test_find_modulecCs|jdSrBrEinvalidate_cachesrrrrtest_invalidate_cachessz2MetaPathFinderDefaultsTests.test_invalidate_cachesN)r!r"r#r@r$rCrTrWrrrrrMsrMcseZdZfddZZS)r+cs t|SrB)rG find_loaderrrIrKrrrXszPathEntryFinder.find_loader)r!r"r#rXrLrrrKrr+sc@s,eZdZeeZddZddZddZdS)PathEntryFinderDefaultsTestscCsJ|t|jd}Wdn1s,0Y||dgfdSrN)rOrPrErX assertEqualrRrrrtest_find_loaders *z-PathEntryFinderDefaultsTests.test_find_loadercCs|d|jddSrN)r[rErHrrrrrHsz(PathEntryFinderDefaultsTests.find_modulecCs|jdSrBrUrrrrrWsz3PathEntryFinderDefaultsTests.test_invalidate_cachesN) r!r"r#r@r+rCr\rHrWrrrrrZsrZcseZdZfddZZS)r.cs t|SrB)rG load_modulerYrKrrr]szLoader.load_module)r!r"r#r]rLrrrKrr.sr.c@s,eZdZeeZddZddZddZdS)LoaderDefaultsTestscCsd}||j|dS)Nza spec)rQrE create_module)rspecrrrtest_create_modulesz&LoaderDefaultsTests.test_create_modulecCs:|t|jdWdn1s,0YdSrN) assertRaises ImportErrorrEr]rrrrtest_load_modules z$LoaderDefaultsTests.test_load_modulecCsbtd}|t|j|Wdn1s60Yt|}|j|_|t|dSNblah) types ModuleTyperbNotImplementedErrorrE module_reprrepr __loader__r)rmodZ original_reprrrrtest_module_reprs   *z$LoaderDefaultsTests.test_module_reprN) r!r"r#r@r.rCrardrnrrrrr^sr^cseZdZfddZZS)r-cs t|SrB)rGget_datarrJrKrrroszResourceLoader.get_data)r!r"r#rorLrrrKrr-sc@seZdZeeZddZdS)ResourceLoaderDefaultsTestscCs:|t|jdWdn1s,0YdS)Nz /some/path)rbIOErrorrErorrrr test_get_datas z)ResourceLoaderDefaultsTests.test_get_dataN)r!r"r#r@r-rCrsrrrrrqsrqcs(eZdZfddZfddZZS)r/cs t|SrB)rG is_packagerYrKrrrtszInspectLoader.is_packagecs t|SrB)rG get_sourcerYrKrrruszInspectLoader.get_source)r!r"r#rtrurLrrrKrr/s c@s eZdZeZddZddZdS)InspectLoaderDefaultsTestscCs:|t|jdWdn1s,0YdSre)rbrcrErtrrrrtest_is_packages z*InspectLoaderDefaultsTests.test_is_packagecCs:|t|jdWdn1s,0YdSre)rbrcrErurrrrtest_get_sources z*InspectLoaderDefaultsTests.test_get_sourceN)r!r"r#SPLIT_ILrCrwrxrrrrrv srvcseZdZfddZZS)r1cs t|SrB)rG get_filenamerYrKrrrzszExecutionLoader.get_filename)r!r"r#rzrLrrrKrr1sc@seZdZeZddZdS)ExecutionLoaderDefaultsTestscCs:|t|jdWdn1s,0YdSre)rbrcrErzrrrrtest_get_filename*s z.ExecutionLoaderDefaultsTests.test_get_filenameN)r!r"r#SPLIT_ELrCr|rrrrr{&sr{cs@eZdZfddZfddZfddZfddZZS) ResourceReadercstj|i|SrB)rG open_resourcerargsr>rKrrr6szResourceReader.open_resourcecstj|i|SrB)rG resource_pathrrKrrr9szResourceReader.resource_pathcstj|i|SrB)rG is_resourcerrKrrr<szResourceReader.is_resourcecstj|i|SrB)rGcontentsrrKrrr?szResourceReader.contents)r!r"r#rrrrrLrrrKrr~4s   r~c@s4eZdZeeZddZddZddZddZ d S) ResourceReaderDefaultsTestscCs:|t|jdWdn1s,0YdSNZ dummy_file)rbFileNotFoundErrorrErrrrrtest_open_resourceGs z.ResourceReaderDefaultsTests.test_open_resourcecCs:|t|jdWdn1s,0YdSr)rbrrErrrrrtest_resource_pathKs z.ResourceReaderDefaultsTests.test_resource_pathcCs:|t|jdWdn1s,0YdSr)rbrrErrrrrtest_is_resourceOs z,ResourceReaderDefaultsTests.test_is_resourcecCs|gt|jdSrB)r[listrErrrrr test_contentsSsz)ResourceReaderDefaultsTests.test_contentsN) r!r"r#r@r~rCrrrrrrrrrCs rc@s8eZdZeddZddZddZddZd d Zd S) MetaPathFinderFindModuleTestscsGfddd|jj}|S)NcseZdZdfdd ZdS)z@MetaPathFinderFindModuleTests.finder..MetaPathSpecFinderNcs||f|_SrB called_for)rrIrJtargetr`rr find_specbs zJMetaPathFinderFindModuleTests.finder..MetaPathSpecFinder.find_spec)Nr!r"r#rrrrrMetaPathSpecFinder`sr)r r$)r:r`rrrrfinder^sz$MetaPathFinderFindModuleTests.findercCsZ|d}gd}d}|t|||}Wdn1sB0Y||dS)Nabcrf)rrOrPrHrQrrrJr7rSrrrrThs   *z.MetaPathFinderFindModuleTests.test_find_modulecCs<t}|jd|}||}|ddd}|||dSre)objectrspec_from_loaderrrr[rloaderr`rrSrrr#test_find_spec_with_explicit_targetps  zAMetaPathFinderFindModuleTests.test_find_spec_with_explicit_targetcCsV|d}gd}d}|||d}|||||jd|||jddS)Nrrfrr)rrrQr[rrrrr test_no_specws  z*MetaPathFinderFindModuleTests.test_no_speccCs:t}|jd|}||}|dd}|||dSre)rrrrrassertIsrrrr test_specs   z'MetaPathFinderFindModuleTests.test_specN) r!r"r# classmethodrrTrrrrrrrr\s   r)r rc@s0eZdZeddZddZddZddZd S) PathEntryFinderFindLoaderTestscsGfddd|jj}|S)NcseZdZdfdd ZdS)zBPathEntryFinderFindLoaderTests.finder..PathEntrySpecFinderNcs ||_SrBr)rrIrrrrrszLPathEntryFinderFindLoaderTests.finder..PathEntrySpecFinder.find_spec)NrrrrrPathEntrySpecFindersr)r r+)r:r`rrrrrsz%PathEntryFinderFindLoaderTests.findercCsr|d}d}|t||}Wdn1s80Y||d|g|d|||jdS)Nrfrr)rrOrPrXrQr[r)rrr7rSrrrrs  (z+PathEntryFinderFindLoaderTests.test_no_speccCsht}|jd|}||}|t|d}Wdn1sH0Y||d|jdS)Nrfr) rrrrrOrPrXrrrrrrtest_spec_with_loaders   (z4PathEntryFinderFindLoaderTests.test_spec_with_loadercCs||jdd}gd}||_||}|t|d}Wdn1sP0Y||d|||ddS)Nrfrrr) r ModuleSpecsubmodule_search_locationsrrOrPrXrQr[)rr`pathsrrSrrrtest_spec_with_portionss  (z6PathEntryFinderFindLoaderTests.test_spec_with_portionsN)r!r"r#rrrrrrrrrrs   r)r rrc@s$eZdZddZddZddZdS)LoaderLoadModuleTestscCsGddd|jj}|S)Nc@s eZdZdZddZddZdS)z0LoaderLoadModuleTests.loader..SpecLoaderNcSs ||_dSrB)rSrmodulerrr exec_modulesz.SpecLoader.exec_modulecSsdS)NTrrYrrrrtsz;LoaderLoadModuleTests.loader..SpecLoader.is_package)r!r"r#rSrrtrrrr SpecLoadersr)r r.)rrrrrrs zLoaderLoadModuleTests.loadercCs|}d}t|2|||j}|tj||Wdn1sN0Y|||j |||j j|||j |||j j | |j| |j|j jdSre)rr=uncacher]rSrsysmodulesr[rl__spec__r!r7ZassertIsNotNone__path__r)rrr7rrrr test_freshs  0 z LoaderLoadModuleTests.test_freshcCsd}|}t|}|j|||_||_t|N|t j |<| ||j }| |t j || |t j |Wdn1s0YdSre)rrgrhrrrrlr=rrrr]rSr)rr7rrrSrrr test_reloads    z!LoaderLoadModuleTests.test_reloadN)r!r"r#rrrrrrrrs rc@s6eZdZd ddZddZddZdd Zd d ZdS) InspectLoaderSourceToCodeTestsNcCsBtd}|}|dur&||}n |||}t||j|Sre)rgrhInspectLoaderSubclasssource_to_codeexec__dict__)rdatarJrrcoderrrsource_to_modules    z/InspectLoaderSourceToCodeTests.source_to_modulecCs0d}||}|t|d||jddS)N attr = 42attr*rrrr[rrsourcerrrrtest_source_to_code_sources z9InspectLoaderSourceToCodeTests.test_source_to_code_sourcecCs0d}||}|t|d||jddS)Ns attr = 42rrrrrrrtest_source_to_code_bytess z8InspectLoaderSourceToCodeTests.test_source_to_code_bytescCs*d}|}|d|}||j|dS)Nzpath/to/somewhererrr[ co_filename)rrJrrrrrtest_source_to_code_path s z7InspectLoaderSourceToCodeTests.test_source_to_code_pathcCs$|}|d}||jddS)Nrr)rrrrrrtest_source_to_code_no_paths z:InspectLoaderSourceToCodeTests.test_source_to_code_no_path)N)r!r"r#rrrrrrrrrrs  r)rc@s$eZdZddZddZddZdS)InspectLoaderGetCodeTestscCsptd}tj|jd(}d|_|}|d}Wdn1sH0Yt||j | |j ddS)Nrfrurr) rgrhrpatchrr return_valueget_coderrr[r)rrmockedrrrrr test_get_code s ( z'InspectLoaderGetCodeTests.test_get_codecCsVtj|jd(}d|_|}|d}Wdn1s>0Y||dS)Nrurf)rrrrrrrQ)rrrrrrrtest_get_code_source_is_None*s (z6InspectLoaderGetCodeTests.test_get_code_source_is_NonecCs@|}|t|dWdn1s20YdSre)rrbrcrrrrrrtest_get_code_source_not_found2s z8InspectLoaderGetCodeTests.test_get_code_source_not_foundN)r!r"r#rrrrrrrrs rc@s@eZdZdZddZddZddZdd Zd d Zd d Z dS)InspectLoaderLoadModuleTestsrfcCs t|j|tj|jdSrB)rZunload module_nameZ addCleanuprrrrrEs z"InspectLoaderLoadModuleTests.setUpcCsV|j|j|}t*tdt|jj |WdS1sH0YdSNignore) rrrwarningscatch_warnings simplefilterrPinit _bootstrap_load_unlocked)rrr`rrrloadIs  z!InspectLoaderLoadModuleTests.loadcCstj|jdS)Nr)rrrrrrrr mock_get_codeOsz*InspectLoaderLoadModuleTests.mock_get_codec Csn|R}t|_|t"|}||Wdn1sB0YWdn1s`0YdSrB)rrc side_effectrbrrrmocked_get_coderrrrtest_get_code_ImportErrorRs   z6InspectLoaderLoadModuleTests.test_get_code_ImportErrorc Csn|R}d|_|t"|}||Wdn1sB0YWdn1s`0YdSrB)rrrbrcrrrrrrtest_get_code_NoneZs   z/InspectLoaderLoadModuleTests.test_get_code_NonecCsdtddd}|<}||_|}||}||tj|jWdn1sV0YdS)Nrrr) compilerrrrr[rrr)rrrrrrrrtest_module_returnedbs    z1InspectLoaderLoadModuleTests.test_module_returnedN) r!r"r#rrrrrrrrrrrr?sr)rrrc@s<eZdZdddddZddZddZd d Zd d Zd S)ExecutionLoaderGetCodeTestsFrurzcCs8d\}}|rtj|jd}|r0tj|jd}||fS)N)NNrurz)rrrExecutionLoaderSubclass)rrurzsource_mock_contextfilename_mock_contextrrr mock_methodsws  z(ExecutionLoaderGetCodeTests.mock_methodsc Csd}|jddd\}}|R}|.}d|_||_|}|d}Wdn1sT0YWdn1sr0Y||j|td}t||j ||j ddS)Nzblah.pyTrrrfr) rrrrr[rrgrhrrr) rrJrr source_mock name_mockrrrrrrrs  F  z)ExecutionLoaderGetCodeTests.test_get_codecCsZ|jdd\}}|(}d|_|}|d}Wdn1sB0Y||dS)NT)rurf)rrrrrQ)rr_rrrrrrrs (z8ExecutionLoaderGetCodeTests.test_get_code_source_is_NonecCs@|}|t|dWdn1s20YdSre)rrbrcrrrrrrs z:ExecutionLoaderGetCodeTests.test_get_code_source_not_foundc Cs|jddd\}}|R}|.}d|_t|_|}|d}Wdn1sP0YWdn1sn0Y||jdt d}t ||j ||j ddS)NTrrrfrr) rrrcrrrr[rrgrhrrr)rrrrrrrrrrrtest_get_code_no_paths  F  z1ExecutionLoaderGetCodeTests.test_get_code_no_pathN)r!r"r#rrrrrrrrrrus   r)rc@s0eZdZdZddZddZddZdd Zd S) SourceOnlyLoadersN_ = '::'.join([__name__, __file__, __cached__, __package__, repr(__loader__)])cCs ||_dSrBrJrprrr__init__szSourceOnlyLoader.__init__cCs||jkrt|jSrB)rJrrrrprrrros zSourceOnlyLoader.get_datacCs|jSrBrrYrrrrzszSourceOnlyLoader.get_filenamecCsdS)NzrrrrrrjszSourceOnlyLoader.module_reprN)r!r"r#rrrorzrjrrrrrs rcs>eZdZdZd fdd ZfddZddZd d ZZS) r5rNcst||j|j|_t|j|_|dur8|jj }t |}| |j d| |j |j| |j |jt|j|jddd}| t|t||_i|_dS)NrrT) dont_inherit)rGrrcache_from_sourcerJ bytecode_pathlenr source_size MAGIC_NUMBER bytearrayextendr _pack_uint32 source_mtimermarshaldumpsbytesbytecodewritten)rrJmagicr code_objectrKrrrs    zSourceLoader.__init__cs.||jkrt|S||jkr&|jStdSrB)rJrGrorrOSErrorrprKrrros    zSourceLoader.get_datacCs||jkrt|j|jdS)N)mtimesize)rJrrrrrprrr path_statss zSourceLoader.path_statscCst||j|<||jkSrB)rrr)rrJrrrrset_dataszSourceLoader.set_data)N) r!r"r#rrror r rLrrrKrr5s  )rrc@s*eZdZddddZddZddZd S) SourceLoaderTestHarnessTrtcKsd|_|r&tj|jd|_|j|_n2d}tj|jdddg|_d|j|g|_|j|j|_|j|jfi||_ dS)NZpkgz __init__.pyrm.py) packageosrJjoinr7rrcached loader_mockr)rrtr>rrrrrs zSourceLoaderTestHarness.setUpcCs||j|j||j|j||j|j||j|j||j |j |j d}||d|j||d|j||d|j||d|j||dt |j dS)Nz::rr)r[r!r7__file__rJ __cached__r __package__rrlrrsplitrk)rrvaluesrrr verify_modules z%SourceLoaderTestHarness.verify_modulecCsLt|j}|j|_|j|_|j|_|j |_ g|_ t ||j ||dSrB)rgrhr7rJrrrrrrrlrrrr)rrrrrr verify_codes  z#SourceLoaderTestHarness.verify_codeN)r!r"r#rrrrrrrr s  r c@sDeZdZddZddZddZddZd d Zd d Zd dZ dS)SourceOnlyLoaderTestscCs|jjd}||j|j|dd}||j_|t}|j|jWdn1sb0Y||j j|jdS)Nutf-8cSstdSrB)rrrrr raise_OSError*sz.raise_OSError) rrdecoder[rur7rorbrc exception)rZexpected_sourcer!cmrrrrx%s ,z%SourceOnlyLoaderTests.test_get_sourcecCs\|jdd||j|j|jdd||j|j||j|jddS)NFr Tz .__init__)r assertFalserrtr7rrrrrrw1s   z%SourceOnlyLoaderTests.test_is_packagecCs|j|j}||dSrBrrr7rrrrrrr9sz#SourceOnlyLoaderTests.test_get_codecCs"|j|jj|j}||dSrB)rrrrJr)rrrrrtest_source_to_code>sz)SourceOnlyLoaderTests.test_source_to_codec Cst|jt*tdt|j|j}Wdn1sF0Y| || |j t j |j g||jtjWdn1s0YdSr)r=rr7rrrrPrr]rr[rrrJdirnameassertInrrrrrrrdCs  , z&SourceOnlyLoaderTests.test_load_modulec Cs|jddt|jlt*tdt|j |j}Wdn1sR0Y| || t |dWdn1s0YdS)NFr rr) rr=rr7rrrrPrr]rr%rrrrrtest_package_settingsOs   , z+SourceOnlyLoaderTests.test_package_settingscCs\d}|d|j_|j|j}|||d}|d|j_|j|j}|||dS)Nu_ = 'ü'r u# coding: latin-1 _ = ülatin-1)encoderrrur7r[)rrreturned_sourcerrrtest_get_source_encoding[s z.SourceOnlyLoaderTests.test_get_source_encodingN) r!r"r#rxrwrr(rdr+r/rrrrrs    r)rrzsys.dont_write_bytecode is truecsZeZdZddfdd ZddZddZd d Zd d Zd dZddZ ddZ Z S)SourceLoaderBytecodeTestsFbytecode_writtencst||r||j|jjt|jj}| |j d| |j |jj | |j |jj | t|||jj|jt|dS)Nr)rGrr*rrrrrrrrrrrrrr[r)rrr2rrKrrrws  z%SourceLoaderBytecodeTests.verify_codecCs|j|j}||dSrBr&r'rrrtest_code_with_everythingsz3SourceLoaderBytecodeTests.test_code_with_everythingcCsld|j_|t*|j|j}|j|Wdn1sB0Y|j|j }|j |dddS)NTr1) rrrbrrrrJrorr7r)rrrrrrtest_no_bytecodes  *z*SourceLoaderBytecodeTests.test_no_bytecodecCsVdD]L}|jj}||j_|jjdd|j_|j|j}|j|dd||j_qdS)N)rrTr1)rrrrr7r)rrZoriginalrrrrtest_code_bad_timestampsz1SourceLoaderBytecodeTests.test_code_bad_timestampcCs@|jdd|jjdd|j_|j|j}|j|dddS)N0000rr6Tr1)rrrrr7rr'rrrtest_code_bad_magics z-SourceLoaderBytecodeTests.test_code_bad_magiccCsFz8dt_d|j_|j|j}||j|jjWdt_ndt_0dS)NTr4F) rdont_write_bytecoderrrr7Z assertNotInrrr'rrrtest_dont_write_bytecodes z2SourceLoaderBytecodeTests.test_dont_write_bytecodec Csv|jdd|jjdj}z>|jjd`|j|j}||W||jjd_n||jjd_0dS)Nr8r9r)rrrDmror rr7r)rZoriginal_set_datarrrrtest_no_set_datas  z*SourceLoaderBytecodeTests.test_no_set_datacCs<dd}|jdd|t|j_|j|j}||dS)Ncsfdd}|S)NcsdSrBr)rr>excrrclosureszcSourceLoaderBytecodeTests.test_set_data_raises_exceptions..raise_exception..closurer)r@rArr?rraise_exceptions zRSourceLoaderBytecodeTests.test_set_data_raises_exceptions..raise_exceptionr8r9)rrirr rr7r)rrBrrrrtest_set_data_raises_exceptionss   z9SourceLoaderBytecodeTests.test_set_data_raises_exceptions) r!r"r#rr3r5r7r:r<r>rCrLrrrKrr0ns      r0)rrrc@s$eZdZddZddZddZdS)SourceLoaderGetSourceTestscCs8d}|d}d}|d|_||}|||dS)Nrmmod.fileux = "ü"r SourceOnlyLoaderMockr-rrur[rr7rrr.rrrtest_default_encodings    z0SourceLoaderGetSourceTests.test_default_encodingcCs8d}|d}d}|d|_||}|||dS)NrmrEu# coding: Latin-1 x='ü'r,rFrHrrrtest_decoded_sources    z.SourceLoaderGetSourceTests.test_decoded_sourcecCsFd}|d}d}|d|_tdd|}||||dS)NrmrEzx = 42 y = -13 r T)rGr-rioIncrementalNewlineDecoderr"r[ru)rr7rrexpectrrrtest_universal_newliness   z2SourceLoaderGetSourceTests.test_universal_newlinesN)r!r"r#rIrJrNrrrrrDs  rD)rG__main__)NF)irKrrrtestrrgZunittestrrrrr=Zimport_importlibrr rrr$Z test_bothZ%Frozen_MetaPathFinderInheritanceTestsZ%Source_MetaPathFinderInheritanceTestsr+Z&Frozen_PathEntryFinderInheritanceTestsZ&Source_PathEntryFinderInheritanceTestsr-Z%Frozen_ResourceLoaderInheritanceTestsZ%Source_ResourceLoaderInheritanceTestsr/Z$Frozen_InspectLoaderInheritanceTestsZ$Source_InspectLoaderInheritanceTestsr1Z&Frozen_ExecutionLoaderInheritanceTestsZ&Source_ExecutionLoaderInheritanceTestsr2Z!Frozen_FileLoaderInheritanceTestsZ!Source_FileLoaderInheritanceTestsr5Z#Frozen_SourceLoaderInheritanceTestsZ#Source_SourceLoaderInheritanceTestsr@rArMZFrozen_MPFDefaultTestsZSource_MPFDefaultTestsrZZFrozen_PEFDefaultTestsZSource_PEFDefaultTestsr.r^ZFrozen_LDefaultTestsZSourceLDefaultTestsrqZFrozen_RLDefaultTestsZSource_RLDefaultTestsryrvZFrozen_ILDefaultTestsZSource_ILDefaultTestsr}r{ZFrozen_ELDefaultTestsZSource_ELDefaultsTestsr~rZFrozen_RRDefaultTestsZSource_RRDefaultsTestsrZFrozen_MPFFindModuleTestsZSource_MPFFindModuleTestsrZFrozen_PEFFindLoaderTestsZSource_PEFFindLoaderTestsrZFrozen_LoaderLoadModuleTestsZSource_LoaderLoadModuleTestsrZFrozen_ILSourceToCodeTestsZSource_ILSourceToCodeTestsrZFrozen_ILGetCodeTestsZSource_ILGetCodeTestsrZFrozen_ILLoadModuleTestsZSource_ILLoadModuleTestsrZFrozen_ELGetCodeTestsZSource_ELGetCodeTestsrZ SPLIT_SOLZSPLIT_SLr rZFrozen_SourceOnlyLoaderTestsZSource_SourceOnlyLoaderTestsZskipIfr;r0ZFrozen_SLBytecodeTestsZSourceSLBytecodeTestsrDZ%Frozen_SourceOnlyLoaderGetSourceTestsZ%Source_SourceOnlyLoaderGetSourceTestsr!mainrrrrs&       $            .* -,/; &&N [ #