kWc@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZx~ejjD]mZeedrgejD]Zejje^qe_needrCejjeje_nqWejdkryddlZWnek rynNXejej\ZZeee eddZ!ej"eje!efndZ#d Z$dZ%d Z&d Z'd Z(dd l)m*Z*dddddddddddf Z+ejje j,Z-ddZ.e/e/d e0e0e0e0e/e0e/e0de0e0e0e0e/e/e0e0e0dZ1dddd d!d"d#d$d%g Z2d&d'd(hZ3e/e2e3d)Z4e0e/d*Z5d+fd,YZ6e0d-Z7d.Z8d/Z9d0Z:e/d1Z;d2Z<d3Z=d4d5d6Z>id7d86d9d:6d;d<6d;d=6d>d?6d@dA6dBd6dCdD6dEdF6dGdH6dIdJ6dKdL6dMdN6dOdP6dQdR6dSdT6Z?e?dNe?dU2GB of disk space temporarily. network - It is okay to run tests that use external network resource, e.g. testing SSL support for sockets. bsddb - It is okay to run the bsddb testsuite, which takes a long time to complete. decimal - Test the decimal module against a large suite that verifies compliance with standards. cpu - Used for certain CPU-heavy tests. subprocess Run all tests for the subprocess module. urlfetch - It is okay to download files required on testing. gui - Run tests that require a running GUI. xpickle - Test pickle and cPickle against Python 2.4, 2.5 and 2.6 to test backwards compatibility. These tests take a long time to run. To enable all resources except one, use '-uall,-'. For example, to run all the tests except for the bsddb tests, give the option '-uall,-bsddb'. iNt__path__t__file__tdarwiniiiiiii(t test_supporttaudiotcursest largefiletnetworktbsddbtdecimaltcput subprocessturlfetchtguitxpickletcCs$tGH|r|GHntj|dS(N(t__doc__tsystexit(tcodetmsg((s#/usr/lib/python2.7/test/regrtest.pytusagestcoveragecIstjtjyntjtjddddddddd d d d d dddddddddddddg\}}Wn#tjk r}td|nX|d:krt j d}nd:krgnxq|D]i\}}|dkrtdq|dkrd7q|dkr1t }q|dkrFt }q|dkrat dq|dkrvt }q|dkrt }q|dkrt }q|dkrt }q|d0krt |}q|dkr|}q|dkrt }q|dkrt } q|dkr=d9d:l }|jt |q|dkrRt } q|dkr|tjjtj|} q|dkrd:} q|dkr]|jdCtdkr|GGHtddEndsdFd|-n| rd9d:l?} | j@dftjAtjBgdtdgt }/ng t_CtjDjE}0 fdh}1|r. tF|-fdi}2|2dj}3dD}4n1tG|-dkj%t|-}3t|3d}4|r yd9dllHmI}5Wn#t&k r dmGHtj#dnXd9dnlJmJ}6d9dolKmLmMtNjOdp|6 fdq}7|7 tjP}8tjQg|8drdsg fdt}9gtR|D]}:|5du|9^qR };x|;D]}<|<jSqt Wd}=d}>y x|=|kr jT\}?}@}A} |?d:kr |=d7}=q n|@r |@GHn|Ar tj$|AIJntjjUtj$jU| dtkrG | ddvks> tVtWn|1|?|  s rf dwndx}B|Bj%|4|>|3t|?GHn|>d7}>q WWn!tWk r t }" j+nXx|;D]}<|<jq WnxtXdD]\}>}? sD r dwndx}B|Bj%|4|>|3t|?GHtjjUn| rl |/jYdydztZd{t[ny[t|? } |1|?| |r | dt\kr d||?GHt|?t nWn!tWk r t }"Pn nX|r7 |j]|j^r7 d}Gt|j^Gd~GH|#j/|j^|j^2q7 nxBtjDjED]1}C|C|0krG |Cj.drG tj_|CqG qG Wq W|"r HdGHt`|-t`t`t` }Dtat|DdGdGHtb|Dnr1 r1 r r|" rtdkrdGntatdGdGHn|ry jcdt dGHx* d D]\}E}?d|?|EfGHqWWnrt`t`rtatdGdGHtbnrdj%tatdGHtbqn r rtat dGdGHtb td}!tj5}F|!jert` |!jft` }G|Grtat|GdGdG|FdCGHtb|GqdG|FdGHqdGHdG|FdGHn|r4r4dGHxhD]]}?d||?GHtjjUy"t t_gt|?t }HWqtWk r#HPqqXqWn|r||.rlt(|$d}%|%jh|.dWd:QXq|tji|$n| r|/jj}|jkdt dt d| n| rtjldtjmntj#tdkp|"d:S(slExecute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdir -- the directory in which to look for tests (optional) Users other than the Python test suite will certainly want to specify testdir; if it's omitted, the directory containing the Python test suite is searched for. If the tests argument is omitted, the tests listed on the command-line will be used. If that's empty, too, then all *.py files beginning with test_ will be used. The other default arguments (verbose, quiet, exclude, single, randomize, findleaks, use_resources, trace, coverdir, print_slow, and random_seed) allow programmers calling main() directly to set the values that would normally be set by flags on the command line. ishvqxsSrf:lu:t:TD:NLR:FwWM:j:thelptverbosetverbose2tverbose3tquiettexcludetsingletslowt randomizes fromfile=t findleakssuse=s threshold=ttraces coverdir=t nocoverdirtrunleakss huntrleaks=s memlimit=s randseed=s multiprocess=s slaveargs=tforevertheaderiis-hs--helpis-vs --verboses-ws --verbose2s-Ws --verbose3s-qs--quiets-xs --excludes-ss--singles-Ss--slows-rs --randomizes --randseeds-fs --fromfiles-ls --findleakss-Ls --runleakss-ts --thresholdiNs-Ts --coverages-Ds --coverdirs-Ns --nocoverdirs-Rs --huntrleakst:is)-R takes 2 or 3 colon-separated argumentsiis reflog.txts-Ms --memlimits-us--uset,tallt-sInvalid -u/--use option: s-Fs --forevers-js--multiprocesss--headers --slaveargssQNo handler for option {}. Please report this as a bug at http://bugs.python.org.s-s and -f don't go together!s-T and -j don't go together!s-l and -j don't go together!s%No GC available, disabling findleaks.t pynexttesttrt#s==t s== taliaseds %s-endiansTesting with flags:sUsing random seedt ignoredirstcountcs|\}}j||f|tkr;j|n|tkrWj|nn|tkrj|j|nE|tkrj|n)|tkrj|j|ndS(N(tappendtPASSEDtFAILEDt ENV_CHANGEDtSKIPPEDtRESOURCE_DENIED(ttesttresulttokt test_time(tbadtenvironment_changedtgoodtresource_deniedstskippedt test_times(s#/usr/lib/python2.7/test/regrtest.pytaccumulate_results        c3s1x*tr,x|D]}|VrdSqWqWdS(N(tTrue(ttestsR7(R;(s#/usr/lib/python2.7/test/regrtest.pyt test_forevers   Rs/{}(tThreads+Multiprocess option requires thread support(tQueue(tPopentPIPEs \[\d+ refs\]$c3sDx=D]5}|ftddf}||fVqWdS(Nt huntrleakst use_resources(tdict(R7t args_tuple(RIRRCRJR(s#/usr/lib/python2.7/test/regrtest.pyttests_and_argss  s-ms test.regrtestc s>yxtryt\}}Wntk rCjd dSXdtj|gdddtdtjdk}|j \}}j d|}|j j d\}}}|sjd dStj |}j||j|j|fqWWn!tk r9jd nXdS( Ns --slaveargststdouttstderrtuniversal_newlinest close_fdstntRs (NNNN(NNNN(NNNN(RBtnextt StopIterationtputtNonetjsontdumpstostnamet communicatetsubtstript rpartitiontloadstrstript BaseException(R7RLtpopenRNROt_R8(RHRGtbase_cmdtdebug_output_pattoutputtpending(s#/usr/lib/python2.7/test/regrtest.pytworks,     -  ttargettKeyboardInterrupts[{1:{0}}{2}/{3}] {4}s[{1:{0}}{2}] {4}sruntest(test, verbose, quiet)tglobalstlocalss"Re-running test %r in verbose modesWarning: test createdsuncollectable object(s).stest.s(Test suite interrupted by signal SIGINT.R7somitted:tAllsOK.treverses10 slowest tests:i s %s: %.1fssfailed:s%{} altered the execution environment:sskipped:tskips unexpected onsThose skips are all expected ont.s6Ask someone to teach regrtest.py about which tests aresexpected to get skipped ons'Re-running failed tests in verbose modetws t show_missingtsummarytcoverdirsleaks %d(s-hs--help(s-vs --verbose(s-ws --verbose2(s-Ws --verbose3(s-qs--quiet(s-xs --exclude(s-ss--single(s-Ss--slow(s-rs --randomize(s-fs --fromfile(s-ls --findleaks(s-Ls --runleaks(s-ts --threshold(s-Ts --coverage(s-Ds --coverdir(s-Ns --nocoverdir(s-Rs --huntrleaks(ii(s-Ms --memlimit(s-us--use(s-Fs --forever(s-js--multiprocess(nRtrecord_original_stdoutRRNtgetopttargvterrorRRVtrandomt randrangeRBtinttgct set_thresholdRYtpathtjointgetcwdtsplittlent set_memlimittlowertRESOURCE_NAMEStFalsetremoveR1RWR_truntestRat INTERRUPTEDt __class__t__name__RXRROtformatt ImportErrortTEMPDIRtopentreadR]tclosetIOErrortSAVEDCWDt startswithtextendtremovepytSTDTESTStNOTTESTStcopytaddtplatformtpython_implementationtversiont byteordertflagst findteststindext IndexErrortseedtshuffleR!tTracetprefixt exec_prefixRJtmodulestkeystlisttitert threadingRERFR RGRHtretcompiletargs_from_interpreter_flagst executabletrangetstarttgettflushtAssertionErrorRjt enumeratetrunctxRktvarsR3tcollecttgarbagetunloadtsetR0t printlisttsortt_ExpectedSkipstisvalidt getexpectedRtwritetunlinktresultst write_resultstsystemtgetpid(IRCttestdirRRRRRtfromfileR RJR!RtR#RIRt print_slowt random_seedtuse_mpRR$R%toptstargsRtotaR|txtuR+RtkwargsR8tet interruptedt found_garbagetfilenametfpt next_testtlinetgutststdteststnotteststargtallteststselectedtnext_single_testttracert save_modulesRARDt test_countttest_count_widthRERFRMtopt_argsRhtitworkerstworkertfinishedt test_indexR7RNROtfmttmoduletomittedttimetplattsurpriseR9((RHRGR;RdReR<R=RIRfRgRR>R?R@RCRJRs#/usr/lib/python2.7/test/regrtest.pytmains                                            (                               %               (                 *  '                t test_grammart test_opcodest test_dictt test_builtinttest_exceptionst test_typest test_unittestt test_doctestt test_doctest2Rt test_future1t test_future2c Cst|}tj|}g}t||B}x^|D]V}tjj|\}}|d dkr8|dkr8||kr8|j|q8q8W|t|S(s-Return a list of all applicable test modules.ittest_s.py(t findtestdirRYtlistdirRR~tsplitextR1tsorted( RRRtnamesRCtothersRZtmodnametext((s#/usr/lib/python2.7/test/regrtest.pyRs  (cCsM|t_|dk r!|t_nzt||||SWdt||XdS(sRun a single test. test -- the name of the test verbose -- if true, print more messages quiet -- if true, don't print 'skipped' messages (probably redundant) test_times -- a list of (time, test_name) pairs huntrleaks -- run multiple times to test for leaks; requires a debug build; a triple corresponding to -R's three arguments Returns one of the test result constants: INTERRUPTED KeyboardInterrupt when run under -j RESOURCE_DENIED test skipped because resource denied SKIPPED test skipped for some other reason ENV_CHANGED test failed because it changed the execution environment FAILED test failed PASSED test passed N(RRRVRJt runtest_innertcleanup_test_droppings(R7RRRIRJ((s#/usr/lib/python2.7/test/regrtest.pyRs    tsaved_test_environmentc BseZdZeZdedZd!Zd Zd ZdZ dZ dZ dZ dZ dZdZdZdZdZdZdZdZdZdZdZdZdZd ZRS("sSave bits of the test environment and restore them at block exit. with saved_test_environment(testname, verbose, quiet): #stuff Unless quiet is True, a warning is printed to stderr if any of the saved items was changed by the test. The attribute 'changed' is initially False, but is set to True if a change is detected. If verbose is more than 1, the before and after state of changed items is also printed. icCs||_||_||_dS(N(ttestnameRR(tselfR RR((s#/usr/lib/python2.7/test/regrtest.pyt__init__s  ssys.argvtcwds sys.stdins sys.stdouts sys.stderrs os.environssys.pathsasyncore.socket_mapstest_support.TESTFNcCsttjtjtjfS(N(tidRRw(R ((s#/usr/lib/python2.7/test/regrtest.pyt get_sys_argv scCs|dt_|dtj(dS(Nii(RRw(R t saved_argv((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_argv s cCs tjS(N(RYR(R ((s#/usr/lib/python2.7/test/regrtest.pytget_cwdscCstj|dS(N(RYtchdir(R t saved_cwd((s#/usr/lib/python2.7/test/regrtest.pyt restore_cwdscCstjS(N(RRN(R ((s#/usr/lib/python2.7/test/regrtest.pytget_sys_stdoutscCs |t_dS(N(RRN(R t saved_stdout((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_stdoutscCstjS(N(RRO(R ((s#/usr/lib/python2.7/test/regrtest.pytget_sys_stderrscCs |t_dS(N(RRO(R t saved_stderr((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_stderrscCstjS(N(Rtstdin(R ((s#/usr/lib/python2.7/test/regrtest.pyt get_sys_stdin scCs |t_dS(N(RR(R t saved_stdin((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_stdin"scCs"ttjtjttjfS(N(RRYtenvironRK(R ((s#/usr/lib/python2.7/test/regrtest.pytget_os_environ%scCs2|dt_tjjtjj|ddS(Nii(RYR tcleartupdate(R t saved_environ((s#/usr/lib/python2.7/test/regrtest.pytrestore_os_environ's  cCsttjtjtjfS(N(RRR~(R ((s#/usr/lib/python2.7/test/regrtest.pyt get_sys_path,scCs|dt_|dtj(dS(Nii(RR~(R t saved_path((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_path.s cCs+tjjd}|r'|jjp*iS(Ntasyncore(RRRt socket_mapR(R R)((s#/usr/lib/python2.7/test/regrtest.pytget_asyncore_socket_map2scCsEtjjd}|dk rA|jdt|jj|ndS(NR)t ignore_all(RRRRVt close_allRBR*R#(R t saved_mapR)((s#/usr/lib/python2.7/test/regrtest.pytrestore_asyncore_socket_map6s cCsFtjjtjrd}n$tjjtjr<d}nd}|S(Ntftd(RYR~tisfileRtTESTFNtisdirRV(R R8((s#/usr/lib/python2.7/test/regrtest.pytget_test_support_TESTFN<s   cCsc|dkr_tjjtjr4tjtjq_tjjtjr_tj tjq_ndS(N( RVRYR~R2RR3RR4tshutiltrmtree(R t saved_value((s#/usr/lib/python2.7/test/regrtest.pytrestore_test_support_TESTFNDs  ccs^xW|jD]L}|jdd}d|}d|}|t||t||fVq WdS(NRpRctget_trestore_(t resourcestreplacetgetattr(R RZt method_suffixtget_namet restore_name((s#/usr/lib/python2.7/test/regrtest.pyt resource_infoKs   cCs#td|jD|_|S(Ncss'|]\}}}||fVqdS(N((t.0RZRtrestore((s#/usr/lib/python2.7/test/regrtest.pys Ss(RKRBt saved_values(R ((s#/usr/lib/python2.7/test/regrtest.pyt __enter__Rs c Cs|j}|`x|jD]\}}}|}|j|} || krt|_|| |jstjdj||j IJ|j dkrtjdj| |IJqqqqWt S(Ns Warning -- {} was modified by {}is Before: {} After: {} ( RERBtpopRBtchangedRRRORR RR( R texc_typetexc_valtexc_tbRERZRRDtcurrenttoriginal((s#/usr/lib/python2.7/test/regrtest.pyt__exit__Ws"      ( ssys.argvscwds sys.stdins sys.stdouts sys.stderrs os.environssys.pathsasyncore.socket_mapstest_support.TESTFN(Rt __module__RRRHR R<RRRRRRRRRRR!R%R&R(R+R/R5R9RBRFRN(((s#/usr/lib/python2.7/test/regrtest.pyR s6                     c Cs&tj||rd}n tj}d}t}ytj}z|rU|t_n|jdrm|}n d|}t|||} t j } t |t t g} t | |} t | dd} | dk r| n|rt| || |}nt j | }WdQXWd|t_XWnbtjk ro}|se|GdG|GHtjjnt|fStjk r}|s|GdG|GHtjjnt|fStk rnatjk r }tjdI|IdI|IJtjjt|fStjd \}}tjdI|IdIt|d I|IJtjj|rtjd tjtjjnt|fSX|rt|fS| jrt|fS|s|rt|fS|j }|st|fSdG|Gd GHd d GH|GHd d GHtjjt|fSdS(Ngstest.t test_mains skipped --R7s failed --is crashed --R&tfilesproduced unexpected output:t*iF(!RRRVtStringIORRRNRR Rt __import__RkRlR>tdash_RtResourceDeniedRR6tunittesttSkipTestR5Rjt TestFailedROR3texc_infotstrt tracebackt print_excRHR4R2tgetvalue(R7RRRItcapture_stdoutR:trefleakt save_stdouttabstestt environmentt start_timet the_packaget the_modulet indirect_testRttypetvalueRf((s#/usr/lib/python2.7/test/regrtest.pyRps                   /             cCsAddl}ddl}|jxtjdfD]}tjj|sPq2ntjj|rudt j }}n5tjj |rdtj }}nt d||rd|||fGHnyAttdrtj||j|jB|jBn||Wq2tk r8}tjd||||fIJq2Xq2WdS( Nitdb_homet directoryRQs8os.path says %r exists but is neither directory nor files%r left behind %s %rtchmods3%r left behind %s %r and it couldn't be removed: %s(tstatR|RRR3RYR~texistsR4R6R7R2Rt SystemErrorthasattrRltS_IRWXUtS_IRWXGtS_IRWXOt ExceptionRRO(R RRmR|RZtkindtnukerR((s#/usr/lib/python2.7/test/regrtest.pyRs,      $ csddl}ddl}ddl}ttdsBtdntj}|jj }tj j } yddl } Wnt k rd} nX| jj } i} ||f} xg| D]%}|jD]}t||^qqD]L}t|dsqnx.|j|gD]}|jj | |t__subclasses__RxRYR~RRRROtdash_R_cleanupRRwRR1tanytsumRRRBR(RfR7RgRIRRRtfstpstpicRtzdctabcsRtmodRtabctobjRytdeltastnwarmuptntrackedtfnametrepcountRt rc_beforetrc_afterRtrefrep((RgRfs#/usr/lib/python2.7/test/regrtest.pyRUsZ$    9       cCslddl}ddl}ddl}ddl}tjddt} ddl} ddl} ddl } ddl } ddl }ddl }ddl }ddlm}x/tjjD]}t|dr|`qqW|tj(|jj|jj|tjjtjj|yddl}Wntk rBnX|jj|jj|tjxC|jD]5\}}|j |_!|j"j|j#jqwW|jt$j%|j&j| j'| j(| j)d| j+|j,| j-|j.j|j/d|_0yddl1}Wntk rSn X|j2|j3dS(Nitdircachet deprecated(t _path_createdt__warningregistry__(4R|Rt _strptimet linecacheRt import_moduleRBturlparseturllibturllib2t mimetypestdoctesttstructtfilecmptdistutils.dir_utilRRRtvaluesRpRRRRR"R#RRRRt_clear_type_cachetitemsRRxt _abc_cachet_abc_negative_cacheRtpurget _regex_cachet clear_cachet urlcleanuptinstall_openerRVtresett clearcachet_default_mime_typest_cachet _clearcachetmastertctypest _reset_cacheR(RRRRRR|RRRRRRRRRRRRRRRtregistryR((s#/usr/lib/python2.7/test/regrtest.pyR$sV<                      cCs|ptjjtptjS(N(RYR~tdirnameRtcurdir(R~((s#/usr/lib/python2.7/test/regrtest.pyR`scCs\|s dSxKt|D]=\}}tjj|\}}|dkr||||stinitial_indenttsubsequent_indentN(ttextwrapRRR(RtwidthtindentRtblanks((s#/usr/lib/python2.7/test/regrtest.pyRqs %sZ test__locale test_bsddb185 test_bsddb3 test_commands test_crypt test_curses test_dbm test_dl test_fcntl test_fork1 test_epoll test_gdbm test_grp test_ioctl test_largefile test_kqueue test_mhlib test_openpty test_ossaudiodev test_pipes test_poll test_posix test_pty test_pwd test_resource test_signal test_threadsignals test_timing test_wait3 test_wait4 twin32s test_bsddb185 test_curses test_dl test_largefile test_kqueue test_ossaudiodev tlinux2s test_bsddb test_bsddb185 test_dl test_epoll test_largefile test_kqueue test_minidom test_openpty test_pyexpat test_sax test_sundry t unixware7t openunix8s test_asynchat test_bsddb test_bsddb185 test_dl test_fork1 test_epoll test_gettext test_largefile test_locale test_kqueue test_minidom test_openpty test_pyexpat test_queue test_sax test_sundry test_thread test_threaded_import test_threadedtempfile test_threading tsco_sv3se test_asynchat test_atexit test_bsddb test_bsddb185 test_bsddb3 test_commands test_crypt test_dbm test_dl test_fcntl test_fork1 test_epoll test_gdbm test_grp test_largefile test_locale test_kqueue test_mmap test_openpty test_poll test_popen2 test_pty test_pwd test_strop test_sundry test_thread test_threaded_import test_threadedtempfile test_threading test_timing triscoss test__locale test_bsddb test_bsddb3 test_curses test_epoll test_gdb test_gdbm test_largefile test_locale test_kqueue test_minidom test_ossaudiodev test_poll s test_bsddb test_bsddb185 test_curses test_dbm test_epoll test_kqueue test_gdbm test_gzip test_openpty test_zipfile test_zlib tsunos5sC test_bsddb test_bsddb185 test_curses test_dl test_epoll test_gdbm test_gzip test_largefile test_locale test_kqueue test_minidom test_openpty test_pyexpat test_sax test_zipfile test_zlib shp-ux11s test_bsddb185 test_curses test_dl test_gdbm test_epoll test_largefile test_locale test_kqueue test_mhlib test_mmap test_poll test_popen2 test_resource tatheoss test_bsddb185 test_bsddb3 test_curses test_dbm test_epoll test_ioctl test_kqueue test_largefile test_locale test_ossaudiodev test_socketserver tcygwinsN test_audioop test_bsddb185 test_bsddb3 test_commands test_curses test_dl test_epoll test_kqueue test_largefile test_mhlib test_mmap test_openpty test_ossaudiodev test_pty test_resource test_signal tos2emxs^ test_bsddb test_bsddb3 test_epoll test_gdbm test_locale test_ossaudiodev test_pep277 test_pty test_socketserver test_tcl test_tk test_ttk_guionly test_ttk_textonly test_timeout test_urllibnet test_multiprocessing tfreebsd4sH test_bsddb test_bsddb185 test_bsddb3 test_bz2 test_dl test_epoll test_gdbm test_gzip test_kqueue test_ossaudiodev test_tcl test_tk test_ttk_guionly test_ttk_textonly test_zipimport test_zlib taix5sa test_ascii_formatd test_bsddb test_bsddb3 test_ctypes test_dl test_epoll test_gdbm test_locale test_normalization test_ossaudiodev test_pep277 test_tcl test_tk test_ttk_guionly test_ttk_textonly test_multiprocessing topenbsd3sp test_ascii_formatd test_bsddb test_bsddb185 test_bsddb3 test_ctypes test_curses test_dl test_epoll test_gdbm test_locale test_ossaudiodev test_pep277 test_tcl test_tk test_ttk_guionly test_ttk_textonly test_multiprocessing tnetbsd3tfreebsd5tfreebsd6tfreebsd7tfreebsd8RcBs#eZdZdZdZRS(cCs0ddl}ddlm}t|_tjtkr,ttj}t|j |_ |j j d|j j s|j j dn|jr|j j dntjdkr|j j dntjdkrd d d d d dg}xO|D]}|j j |qWn.tdjddkr<|j j d ntjdkrddddddg}x!|D]}|j j |qjWntjdkrddddddg}x!|D]}|j j |qWntjdkr|j j d |j j d!ntjs |j j d"nt|_ndS(#Ni(t test_timeoutttest_linuxaudiodevt test_pep277Rlt test_imageopRt test_macosttest_macostoolst test_aepackt test_plistlibttest_scriptpackagesttest_applesingleusunicode-internaliRttest_unicode_filet test_winregt test_winsoundttest_startfilet test_sqlitet test_msilibtirixttest_alttest_cdttest_clttest_glt test_imgfileRttest_sunaudiodevttest_nist test_py3kwarn(tos.pathR7RRtvalidRRt _expectationsRRtexpectedRR~tsupports_unicode_filenamest skip_expectedtmaxintRtencodet py3kwarningRB(R RYRtstMAC_ONLYRotWIN_ONLYt IRIX_ONLY((s#/usr/lib/python2.7/test/regrtest.pyR sL              cCs|jS(s@Return true iff _ExpectedSkips knows about the current platform.(R(R ((s#/usr/lib/python2.7/test/regrtest.pyRscCs|jst|jS(snReturn set of test names we expect to skip on current platform. self.isvalid() must be true. (RRR(R ((s#/usr/lib/python2.7/test/regrtest.pyRs(RROR RR(((s#/usr/lib/python2.7/test/regrtest.pyRs 7 t__main__tsrcdirtbuildstest_python_{}R(NRRSRvRWRYRyRR6RRR\RRWttempfileRzRt sysconfigRt itervaluesRRpRR~tabspathRtresourceRt getrlimitt RLIMIT_STACKtsoftthardtmintmaxtnewsoftt setrlimitR2R3R4R5R6RR7RRt gettempdirRRRVRRRRRRR RRRURRRR0RRRRRwRtis_python_buildRtget_config_varRntmkdirRRtTESTCWDttemp_cwdRB(((s#/usr/lib/python2.7/test/regrtest.pyts                .             # M ' @ <   ! ! E %