,bc@sKdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZx~ejjD]mZeedrgejD]Zejje^qe_needrCejjeje_nqWejdkryddlZWnek rynNXejej\ZZeee eddZ!ej"eje!efnejdkryddl#Z#Wne$k rnXnd Z%d Z&dZ'd Z(d Z)d Z*ddl+m,Z,dddddddddddf Z-ejje j.Z/ddZ0e1e1d e2e2e2e2e1e2e1e2de2e2e2e2e1e1e2e2e2e2dZ3ddd d!d"d#d$d%d&g Z4d'd(d)hZ5e1e4e5d*Z6e2e1e2d+Z7d,fd-YZ8e2e2d.Z9d/Z:d0Z;d1Z<d2Z=e1d3Z>d4Z?d5Z@d6d7d8ZAid9d6d:d;6d<d=6d<d>6d?d@6dAdB6dCd6dDdE6dFdG6dHdI6dJdK6dLdM6dNdO6dPdQ6dRdS6dTdU6ZBeBdOeBdV2GB 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__tdarwiniitwin32iiiii(t test_supporttaudiotcursest largefiletnetworktbsddbtdecimaltcput subprocessturlfetchtguitxpickletcCs$tGH|r|GHntj|dS(N(t__doc__tsystexit(tcodetmsg((s#/usr/lib/python2.7/test/regrtest.pytusagestcoveragecJstjtjyqtjtjddddddddd d d d d ddddddddddddddg\}}Wn#tjk r}td|nX|d;krt j d}nd;krgnx|D]~\}}|dkrtd q|dkrd7q|dkr4t }q|dkrIt }q|dkrdt d q|dkryt }q|dkrt }q|dkrt }q|dkrt }q|d1krt |}q|dkr|}q|dkrt }q|dkrt } q|dkr@d:d;l }|jt |q|dkrUt } q|dkrtjjtj|} q|dkrd;} q|dkr`|jdDtdkr|GGHtddFnd sdGd |.n| rd:d;l?} | j@ditjAtjBgdtdjt }0ngt_CtDtjE}1 fdk}2|rO tF|.fdl}3|3dm}4dE}5n1tG|.dnj%t|.}4t|4d}5|r! yd:dolHmI}6Wn#t&k r dpGHtj#dnXd:dqlJmJ}7d:drlKmLmMtNjOds|7 fdt}8|8 tjP}9tjQg|9dudvg ra dYgn fdw}:gtR|D]};|6dx|:^q }<x|<D]}=|=jSq Wd }>d}?yx |>|kr jT\}@}A}B}!|@d;kr |>d7}>q n|Ar" |AGHn|Br? r? tj$|BIJntjjUtj$jU|!d tkr |!ddyks tVtWn|2|@|! s r dznd{}C|Cj%|5|?|4t|@GHn|?d7}?q WWn!tWk r t }# j+nXx|<D]}=|=jq WnxtXdD]\}?}@ s rO dznd{}C|Cj%|5|?|4t|@GHtjjUn| r |0jYd|d}tZd~t[nypt|@ d; }!|2|@|!|r |!d t\kr s d|@GHnt|@t d; nWn!tWk r7 t }#Pn nX|r |j]|j^r dGt|j^GdGH|$j/|j^|j^2q nxBtjEj_D]1}D|D|1kr |Dj.dr tj`|Dq q Wq1 W|#r8 r8HdGHtD|.tDtDtD }Etat|EdGdGHtb|Enr r r rz rz|# rztdkrzdGntatdGdGHn|rjcdt dGHx*d D]\}F}@d|@|FfGHqWnr rtatdGdGHtbnrF rFdj%tatdGHtbn r r rtat dGdGHtb td}"tj5}G|"jertD |"jftD }H|Hrtat|HdGdG|GdDGHtb|HqdG|GdGHqdGHdG|GdGHn|rrdGHxD]}@d|@GHtjjUy(t t_gt|@t d; }IWntWk rHPq+X|Id thtitjtkhkr+j|@q+q+WrtatdGdGHtbqn|r+|/rt(|%d}&|&jl|/dWd;QXq+tjm|%n| r\|0jn}|jodt dt d| n| r|tjpdtjqntj#td kp|#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:Pthelptverbosetverbose2tverbose3tquiettexcludetsingletslowt randomizes fromfile=t findleakssuse=s threshold=ttraces coverdir=t nocoverdirtrunleakss huntrleaks=s memlimit=s randseed=s multiprocess=s slaveargs=tforevertheadertpgoiis-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 --slaveargss-Ps--pgosQNo 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|na|tkrsj|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(ttestsR9(R=(s#/usr/lib/python2.7/test/regrtest.pyt test_forevers   Rs/{}(tThreads+Multiprocess option requires thread support(tQueue(tPopentPIPEs \[\d+ refs\]$c 3sJxCD];}|ftdddf}||fVqWdS(Nt huntrleakst use_resourcesR'(tdict(R9t args_tuple(RKR'RRERLR(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(RDtnextt StopIterationtputtNonetjsontdumpstostnamet communicatetsubtstript rpartitiontloadstrstript BaseException(R9RNtpopenRPRQt_R:(RJRItbase_cmdtdebug_output_pattoutputtpending(s#/usr/lib/python2.7/test/regrtest.pytwork s,     -  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.R9somitted: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 modes failed again:tws 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(s-Ps--pgo(rRtrecord_original_stdoutRRPtgetopttargvterrorRRXtrandomt randrangeRDtinttgct set_thresholdR[tpathtjointgetcwdtsplittlent set_memlimittlowertRESOURCE_NAMEStFalsetremoveR3RYRatruntestRct INTERRUPTEDt __class__t__name__RZRRQtformatt ImportErrortTEMPDIRtopentreadR_tclosetIOErrortSAVEDCWDt startswithtextendtremovepytSTDTESTStNOTTESTStcopytaddtplatformtpython_implementationtversiont byteordertflagst findteststindext IndexErrortseedtshuffleR"tTracetprefixt exec_prefixRLtsettmodulestlisttitert threadingRGRHR RIRJtretcompiletargs_from_interpreter_flagst executabletrangetstarttgettflushtAssertionErrorRlt enumeratetrunctxRmtvarsR5tcollecttgarbagetkeystunloadR2t printlisttsortt_ExpectedSkipstisvalidt getexpectedRR4R6R7R8twritetunlinktresultst write_resultstsystemtgetpid(JREttestdirRRRRR tfromfileR!RLR"RvR$RKRt print_slowt random_seedtuse_mpRR%R&R'toptstargsRtotaR~txtuR-RtkwargsR:tet interruptedt found_garbagetfilenametfpt next_testtlinetgutststdteststnotteststargtallteststselectedtnext_single_testttracert save_modulesRCRFt test_countttest_count_widthRGRHROtopt_argsRjtitworkerstworkertfinishedt test_indexR9RPRQtfmttmoduletomittedttimetplattsurpriseR;((RJRIR=RfRgR>R?RKRhRiR'RR@RARBRERLRs#/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 findtestdirR[tlistdirRRtsplitextR3tsorted( RRRtnamesREtothersR\tmodnametext((s#/usr/lib/python2.7/test/regrtest.pyRs  (cCsP|t_|dk r!|t_nzt|||||SWdt||XdS(soRun 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 pgo -- if true, do not print unnecessary info when running the test for Profile Guided Optimization build 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(RRRXRLt runtest_innertcleanup_test_droppings(R9RRRKRLR'((s#/usr/lib/python2.7/test/regrtest.pyRs    tsaved_test_environmentc BseZdZeZdeedZd#Zd Zd ZdZ dZ dZ dZ dZ dZdZdZdZdZdZdZdZdZdZdZdZdZd Zd!Zd"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(ttestnameRRR'(tselfR RRR'((s#/usr/lib/python2.7/test/regrtest.pyt__init__s   ssys.argvtcwds sys.stdins sys.stdouts sys.stderrs os.environssys.pathsasyncore.socket_maptfilescCsttjtjtjfS(N(tidRRy(R ((s#/usr/lib/python2.7/test/regrtest.pyt get_sys_argv#scCs|dt_|dtj(dS(Nii(RRy(R t saved_argv((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_argv%s cCs tjS(N(R[R(R ((s#/usr/lib/python2.7/test/regrtest.pytget_cwd)scCstj|dS(N(R[tchdir(R t saved_cwd((s#/usr/lib/python2.7/test/regrtest.pyt restore_cwd+scCstjS(N(RRP(R ((s#/usr/lib/python2.7/test/regrtest.pytget_sys_stdout.scCs |t_dS(N(RRP(R t saved_stdout((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_stdout0scCstjS(N(RRQ(R ((s#/usr/lib/python2.7/test/regrtest.pytget_sys_stderr3scCs |t_dS(N(RRQ(R t saved_stderr((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_stderr5scCstjS(N(Rtstdin(R ((s#/usr/lib/python2.7/test/regrtest.pyt get_sys_stdin8scCs |t_dS(N(RR(R t saved_stdin((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_stdin:scCs"ttjtjttjfS(N(RR[tenvironRM(R ((s#/usr/lib/python2.7/test/regrtest.pytget_os_environ=scCs2|dt_tjjtjj|ddS(Nii(R[R#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_pathDscCs|dt_|dtj(dS(Nii(RR(R t saved_path((s#/usr/lib/python2.7/test/regrtest.pytrestore_sys_pathFs cCs+tjjd}|r'|jjp*iS(Ntasyncore(RRRt socket_mapR(R R,((s#/usr/lib/python2.7/test/regrtest.pytget_asyncore_socket_mapJscCsEtjjd}|dk rA|jdt|jj|ndS(NR,t ignore_all(RRRRXt close_allRDR-R&(R t saved_mapR,((s#/usr/lib/python2.7/test/regrtest.pytrestore_asyncore_socket_mapNs cCsFtjjtjrd}n$tjjtjr<d}nd}|S(Ntftd(R[RtisfileRtTESTFNtisdirRX(R R:((s#/usr/lib/python2.7/test/regrtest.pytget_test_support_TESTFNTs   cCsc|dkr_tjjtjr4tjtjq_tjjtjr_tj tjq_ndS(N( RXR[RR5RR6RR7tshutiltrmtree(R t saved_value((s#/usr/lib/python2.7/test/regrtest.pytrestore_test_support_TESTFN\s  cCs tdtjtjDS(Ncss1|]'}|tjj|r$dndVqdS(t/RN(R[RR7(t.0tfn((s#/usr/lib/python2.7/test/regrtest.pys ds(RR[Rtcurdir(R ((s#/usr/lib/python2.7/test/regrtest.pyt get_filescs cCsptj}||krl|d|krltjj|rGtj|qltjj|rltj|qlndS(NR=(RR6R[RR5RR7R:(R R;R?((s#/usr/lib/python2.7/test/regrtest.pyt restore_filesfs  ccs^xW|jD]L}|jdd}d|}d|}|t||t||fVq WdS(NRrRetget_trestore_(t resourcestreplacetgetattr(R R\t method_suffixtget_namet restore_name((s#/usr/lib/python2.7/test/regrtest.pyt resource_infons   cCs#td|jD|_|S(Ncss'|]\}}}||fVqdS(N((R>R\Rtrestore((s#/usr/lib/python2.7/test/regrtest.pys vs(RMRKt saved_values(R ((s#/usr/lib/python2.7/test/regrtest.pyt __enter__us c Cs|j}|`x|jD]\}}}|}|j|} || krt|_|| |j r|j rtjdj ||j IJ|j dkr|j rtjdj | |IJqqqqWt S(Ns Warning -- {} was modified by {}is Before: {} After: {} ( RMRKtpopRDtchangedRR'RRQRR RR( R texc_typetexc_valtexc_tbRMR\RRLtcurrenttoriginal((s#/usr/lib/python2.7/test/regrtest.pyt__exit__zs"     ( ssys.argvRs sys.stdins sys.stdouts sys.stderrs os.environssys.pathsasyncore.socket_mapR(Rt __module__RRRPRRERRRRRRRRR R"R$R(R)R+R.R2R8R<RARBRKRNRV(((s#/usr/lib/python2.7/test/regrtest.pyR s:                       c CsYtj||rd}n tj}d}t}ytj}z|rU|t_n|jdrm|} n d|} tt ||||} t j } t | t t g} t| |} t| dd}|dk r|n|rt| |||}nt j | }WdQXWd|t_XWntjk r}| rw| rw|GdG|GHtjjnt|fStjk r}| r| r|GdG|GHtjjnt|fStk rnztjk r,}|stjdI|IdI|IJntjjt|fStjd \}}|s}tjdI|IdIt|d I|IJntjj|r| 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 --R9s failed --is crashed --R(tfilesproduced unexpected output:t*iF("RRRXtStringIORRRPRt clear_cachesR Rt __import__RmRnRGtdash_RtResourceDeniedRR8tunittesttSkipTestR7Rlt TestFailedRQR5texc_infotstrt tracebackt print_excRPR6R4tgetvalue(R9RRRKR'tcapture_stdoutR<trefleakt save_stdouttabstestt environmentt start_timet the_packaget the_modulet indirect_testRttypetvalueRh((s#/usr/lib/python2.7/test/regrtest.pyR s                 "  2              cCsAddl}ddl}|jxtjdfD]}tjj|sPq2ntjj|rudt j }}n5tjj |rdtj }}nt d||rd|||fGHnyAttdrtj||j|jB|jBn||Wq2tk r8}tjd||||fIJq2Xq2WdS( Nitdb_homet directoryRYs8os.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~RRR6R[RtexistsR7R9R:R5Rt SystemErrorthasattrRutS_IRWXUtS_IRWXGtS_IRWXOt ExceptionRRQ(R RRvR~R\tkindtnukerR((s#/usr/lib/python2.7/test/regrtest.pyR s,      $ 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 | |telt((s#/usr/lib/python2.7/test/regrtest.pys stinitial_indenttsubsequent_indentN(ttextwrapRRR(RtwidthtindentRtblanks((s#/usr/lib/python2.7/test/regrtest.pyRs %sl 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_spwd test_threadsignals test_timing test_wait3 test_wait4 s 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.pathR9RRtvalidRRt _expectationsRRtexpectedRRtsupports_unicode_filenamest skip_expectedtmaxintRtencodet py3kwarningRD(R R[RtstMAC_ONLYRqtWIN_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.pyRcscCs|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.pyRgs(RRWRRR(((s#/usr/lib/python2.7/test/regrtest.pyR+s 7 t__main__tsrcdirtbuildstest_python_{}R(QRR[RxRYR[R{RR9RRReRR`ttempfileRRt sysconfigRt itervaluesRRyRRtabspathRtresourceRt getrlimitt RLIMIT_STACKtsoftthardtmintmaxtnewsoftt setrlimittFixTkR}R4R5R6R7R8RR9RRt gettempdirRRRXRRRRRRR R R R^RR\RRR2RRRRRyRtis_python_buildRtget_config_varRwtmkdirRRtTESTCWDttemp_cwdRD(((s#/usr/lib/python2.7/test/regrtest.pyts                .             &P ' @  c   " ! E %