Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/test/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/test/__pycache__/regrtest.cpython-33.pyc

�
��f-�c1@s�dZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlmZyddlZWnek
r0eZYnXyddlZWnek
r[eZYnXxlejj�D][Zeed�r�dd�ej D�e_ need�r�ej!j"ej#�e_#nqlWej	dkrOyddl$Z$Wnek
r�YnNXe$j%e$j&�\Z'Z(e)e(e*e'd	d
��Z+e$j,e$j&e+e(f�ndZ-dZ.dZ/dZ0d
Z1dZ2dZ3ddl4m5Z5dddddddddf	Z6ej!j"ej7��Z8dd�Z9eede:e:e:e:ee:ee:de:e:e:e:eee:e:e:e:edd�Z;dd d!d"d#d$d%d&d'd(g
Z<e=�Z>ee<e>d)d*�Z?Gd+d,�d,e@�ZAd-d.�ZBe:e:ee:e:eed/d0�ZCeeC_DGd1d2�d2�ZEe:e:eFd3d4�ZGd5d6�ZHd7d8�ZId9d:�ZJd;d<�ZKed=d>�ZLd?d@�ZMdAdB�ZNdCddDdE�ZOdFdGfdHdIfdJdKfdLdKfdMdNfddOfdPdQfdRdSfdTdUfdVdWfdXdYfdZd[fd\d]fd^d_ffZPGd`da�da�ZQdbdc�ZReSddkr�ej!j"ej!jTej!jUejVd���ZWeXej!�ZYxReYdkr�eYd8ZYej!j"ej!jTej!eY��eWkr�ej!eY=nq5Wej!j"e#�Z#e#ej!j"ejVd�ks�tZ�eRe8�\Z8Z[e5j\e[deeF��e;�WdQXndS(fu�
Usage:

python -m test [options] [test_name1 [test_name2 ...]]
python path/to/Lib/test/regrtest.py [options] [test_name1 [test_name2 ...]]


If no arguments or options are provided, finds all files matching
the pattern "test_*" in the Lib/test subdirectory and runs
them in alphabetical order (but see -M and -u, below, for exceptions).

For more rigorous testing, it is useful to use the following
command line:

python -E -Wd -m test [options] [test_name1 ...]


Options:

-h/--help       -- print this text and exit
--timeout TIMEOUT
                -- dump the traceback and exit if a test takes more
                   than TIMEOUT seconds; disabled if TIMEOUT is negative
                   or equals to zero
--wait          -- wait for user input, e.g., allow a debugger to be attached

Verbosity

-v/--verbose    -- run tests in verbose mode with output to stdout
-w/--verbose2   -- re-run failed tests in verbose mode
-W/--verbose3   -- display test output on failure
-d/--debug      -- print traceback for failed tests
-q/--quiet      -- no output unless one or more tests fail
-o/--slow       -- print the slowest 10 tests
   --header     -- print header with interpreter info

Selecting tests

-r/--randomize  -- randomize test execution order (see below)
   --randseed   -- pass a random seed to reproduce a previous random run
-f/--fromfile   -- read names of tests to run from a file (see below)
-x/--exclude    -- arguments are tests to *exclude*
-s/--single     -- single step through a set of tests (see below)
-m/--match PAT  -- match test cases and methods with glob pattern PAT
-G/--failfast   -- fail as soon as a test fails (only with -v or -W)
-u/--use RES1,RES2,...
                -- specify which special resource intensive tests to run
-M/--memlimit LIMIT
                -- run very large memory-consuming tests
   --testdir DIR
                -- execute test files in the specified directory (instead
                   of the Python stdlib test suite)

Special runs

-l/--findleaks  -- if GC is available detect tests that leak memory
-L/--runleaks   -- run the leaks(1) command just before exit
-R/--huntrleaks RUNCOUNTS
                -- search for reference leaks (needs debug build, v. slow)
-j/--multiprocess PROCESSES
                -- run PROCESSES processes at once
-T/--coverage   -- turn on code coverage tracing using the trace module
-D/--coverdir DIRECTORY
                -- Directory where coverage files are put
-N/--nocoverdir -- Put coverage files alongside modules
-t/--threshold THRESHOLD
                -- call gc.set_threshold(THRESHOLD)
-n/--nowindows  -- suppress error message boxes on Windows
-F/--forever    -- run the specified tests in a loop, until an error happens


Additional Option Details:

-r randomizes test execution order. You can use --randseed=int to provide a
int seed value for the randomizer; this is useful for reproducing troublesome
test orders.

-s On the first invocation of regrtest using -s, the first test file found
or the first test file given on the command line is run, and the name of
the next test is recorded in a file named pynexttest.  If run from the
Python build directory, pynexttest is located in the 'build' subdirectory,
otherwise it is located in tempfile.gettempdir().  On subsequent runs,
the test in pynexttest is run, and the next test is written to pynexttest.
When the last test has been run, pynexttest is deleted.  In this way it
is possible to single step through the test files.  This is useful when
doing memory analysis on the Python interpreter, which process tends to
consume too many resources to run the full regression test non-stop.

-S is used to continue running tests after an aborted run.  It will
maintain the order a standard run (ie, this assumes -r is not used).
This is useful after the tests have prematurely stopped for some external
reason and you want to start running from where you left off rather
than starting from the beginning.

-f reads the names of tests from the file given as f's argument, one
or more test names per line.  Whitespace is ignored.  Blank lines and
lines beginning with '#' are ignored.  This is especially useful for
whittling down failures involving interactions among tests.

-L causes the leaks(1) command to be run just before exit if it exists.
leaks(1) is available on Mac OS X and presumably on some other
FreeBSD-derived systems.

-R runs each test several times and examines sys.gettotalrefcount() to
see if the test appears to be leaking references.  The argument should
be of the form stab:run:fname where 'stab' is the number of times the
test is run to let gettotalrefcount settle down, 'run' is the number
of times further it is run and 'fname' is the name of the file the
reports are written to.  These parameters all have defaults (5, 4 and
"reflog.txt" respectively), and the minimal invocation is '-R :'.

-M runs tests that require an exorbitant amount of memory. These tests
typically try to ascertain containers keep working when containing more than
2 billion objects, which only works on 64-bit systems. There are also some
tests that try to exhaust the address space of the process, which only makes
sense on 32-bit systems with at least 2Gb of memory. The passed-in memlimit,
which is a string in the form of '2.5Gb', determines howmuch memory the
tests will limit themselves to (but they may go slightly over.) The number
shouldn't be more memory than the machine has (including swap memory). You
should also keep in mind that swap memory is generally much, much slower
than RAM, and setting memlimit to all available RAM or higher will heavily
tax the machine. On the other hand, it is no use running these tests with a
limit of less than 2.5Gb, and many require more than 20Gb. Tests that expect
to use more than memlimit memory will be skipped. The big-memory tests
generally run very, very long.

-u is used to specify which special resource intensive tests to run,
such as those requiring large file support or network connectivity.
The argument is a comma-separated list of words indicating the
resources to test.  Currently only the following are defined:

    all -       Enable all special resources.

    none -      Disable all special resources (this is the default).

    audio -     Tests that use the audio device.  (There are known
                cases of broken audio drivers that can crash Python or
                even the Linux kernel.)

    curses -    Tests that use curses and will modify the terminal's
                state and output modes.

    largefile - It is okay to run some test that may create huge
                files.  These tests can take a long time and may
                consume >2GB of disk space temporarily.

    network -   It is okay to run tests that use external network
                resource, e.g. testing SSL support for sockets.

    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.

To enable all resources except one, use '-uall,-<resource>'.  For
example, to run all the tests except for the gui tests, give the
option '-uall,-gui'.
iN(u
isabstractu__path__cCs"g|]}tjj|��qS((uosupathuabspath(u.0upath((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
<listcomp>�s	u
<listcomp>u__file__udarwiniiiiiii(usupportuaudioucursesu	largefileunetworkudecimalucpuu
subprocessuurlfetchuguicCs7t|dtj�tddtj�tjd�dS(NufileuUse --help for usagei(uprintusysustderruexit(umsg((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuusage�suusageucoveragecN`s�tjdd��g}ttd�r8|jtj�nttd�rZ|jtj�nx!|D]}tj|dd��qaWt	�t
jtj
�y�tjtjdd�ddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'g �\}}Wn2tjk
rU}zt|�WYdd}~XnX|dkrttjd(�}n�dkr�g�nd��d}d�x�|D]�\}}|d�kr�tt�dS|d�kr��d7�q�|d�kr�d�}q�|d�krd��q�|d�kr d��q�|d�kr5d��q�|d�krPd��d7�q�|d�kred�}q�|d�krz|}q�|d�kr�d�}q�|d�kr�d�}q�|d�kr�d�}q�|dBkr�d�}t|�}q�|d�kr�|}q�|d�kr|�q�|d�krd�}q�|d�kr.d�}q�|d�kr\d7dl}|jt|��q�|d�krqd�}
q�|d�kr�tjjt
j|�}q�|d�kr�d}q�|d�kr�|jdU��
t �
�d�kr�t|�
�tdX�n�
d7sdY�
d7<nt�
d7��
d7<�
ds6dZ�
d<nt�
d��
d<t �
�dVksg�
dVr}d[g�
dVd�<nt!�q�|d�kr�t
j"|�q�|d�kr�d`da�|jdb�D�} x�| D]�}!|!dckr�t#�dd�<q�n|!ddkr�dd�=q�nd�}"|!d7dekrHd�}"|!dd�}!n|!t#kretdf|�n|"r�|!�kr��j$|!�q�q�|!�kr��j|!�q�q�Wq�|d�krVd7dl%}#|#j&|#j'|#j(B|#j)B|#j*B�y|#j+Wnt,k
r	Yq�Xxz|#j-|#j.|#j/gD],}$|#j+|$|#j0�|#j1|$|#j2�q#Wq�|d�krkd�}q�|d�kr�t|�}|d7kr�y d7dl3}%dV|%j4�}Wq�t5t6fk
r�dW}Yq�Xn|dkr�d}q�q�|dmkrd�}q�|dnkr�t7j8|�\}}&yt9||&�}'Wn^t:k
rTt;dof}'YnAt<k
r�}(z!t=j>�t?t@|(�f}'WYdd}(~(XnXtj
jA�t�tt7jB|'��tjCd7�q�|dpkr�tjjt
j|�}q�|dqkrEttdr�r2tD|���d7krBd�qBq�tds�d�q�|dtkr^tEdu�q�tdvjF|�dwtjG�tjCd�q�W|r�|r�tdx�n|r�|
r�tdy�n|r�|r�tdz�n|r�t
jHr�td{�n�r	�p	�r	td|�ng�	g�g�g�g�d�})|rz	yd7dl}Wn"t5k
rp	td}�d�}Yqz	Xg}*n|r�	tjjtId~�}+y8tJ|+d�},|,jK�jL�}-|-g}|,jM�Wq�	tNk
r�	Yq�	Xn|r�
g}tJtjjt
j|��},tOjPd��}.xV|,D]N}/|.jQdo|/�}/|/j�}0|0r%
|0d7jRd��r%
|jS|0�q%
q%
W|,jM�ntT|�tT|�tUdd�}1tVjW�}2|r�
x7|D]/}3|3|1kr�
|1j$|3�n|2jX|3�q�
Wg}n�s"|s"�p|p|p|r�td�tYjZ�tj[j��td�tYjYd�d��d�tj\�td�tj]��td�tj^�n|r�t_|t`�ta��}4nt_||1|2�}4|p�|p�|4}5|r"|5dd�}5y|4|4jb|5d7�d}6Wq"tck
rd}6Yq"Xn|rhy|5d|5jb|��=Wqhtdk
rdtd�|�YqhXn|r�tje|�td�|�tjf|5�n|
r�d7dlg}
d7dlh}7|
jid�tjjtjk|7jl�gd�d�d�d��}8ng��t
_m�t
_ntjojp�}9���	���fd�d��}:|rm
t`|5��fd�d��};|;�}do}<dW}=n1tq|5�}d�jFt |5��}<t |<�d}=|rNyd7d�lrms�Wn)t5k
r�
td��tjCdV�YnXd7d�ltmu}>d7d�lvmw�mx�tOjPd���|>��ty|��
t
jz�}?tj{g|?dEd�g��������
���
�����fd�d�����fd�da�t||�D�}@x|@D]}A|Aj}�q�Wd7}Bd}Cy3x,|B|kr
�j~�\}D}E}F}'|Ddkr|Bd7}Bq�n|:|D|'��sl�r>d�nd�}Gt|GjF|=|C|<t ��|D��n|Ert|E�n|Fr�t|FdwtjG�ntj
jA�tjGjA�|'d7t;kr�t:�n|'d7t?kr�td�jF|D|'d���n|Cd7}Cq�WWn!t:k
r/d�})d��
_�YnXx�|@D]}A|Aj�q7Wn�x�t�|d�D]�\}C}D�s��r|d�nd�}Gt|GjF|=|C|<t ��|D��tj
jA�n|
r�|8j�d�d�t��d�t���ngyAt9|D���
�d��d��d&�d���}'|:|D|'�Wn#t:k
r;d�})PYn�YnX|r�|j��|j�r�td�t |j��d�d��td��|*jS|j��|j�dd�=q�nxBtjojp�D]1}H|H|9kr�|HjRd��r�t
j�|H�q�q�Wq^W|)r^t�td��ta|5�ta�	�ta��ta��}Itt�t |I�d��d��t�|I�n�	r��r��r��r�|)r�t �	�dkr�td�d�d��ntt�t �	�d��d��n|r�j�d�d��td��x5�dd��D] \}J}Dtd�|D|Jf�q�Wn�rpt�ta��ta�����rptt�t ��d��d��t���qpn�r�td�jFt�t ��d����t���n�r~�r~tt�t ��d��d��t���t��}(tjY}K|(j��r`ta��|(j��ta��}L|LrLtt�t |L�d��d�|KdU�t�|L�q{td�|Kd��q~td��td�|Kd��n|r�rtd��x{�D]p}Dtd�|D�tj
jA�y(d��t9|Dd���
�d���}MWq�t:k
rt�PYq��Yq�Xq�Wn|rZ|6rJtJ|+d���},|,j�|6d��WdQXqZtj�|+�n|
r�|8j��}!|!j�d�d�d�d�d�|�n|r�tj�d�tj���ntjCt ��d7kp�|)�dS(�ulExecute 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.
    uall_threadsuSIGALRMuSIGUSR1uchainiNu#hvqxsoS:rf:lu:t:TD:NLR:FdwWM:nj:Gm:uhelpuverboseuverbose2uverbose3uquietuexcludeusingleuslowu	randomizeu	fromfile=u	findleaksuuse=u
threshold=u	coverdir=u
nocoverdirurunleaksuhuntrleaks=u	memlimit=u	randseed=u
multiprocess=ucoverageu
slaveargs=uforeverudebugustart=u	nowindowsuheaderutestdir=utimeout=uwaitufailfastumatch=i���u-hu--helpu-vu	--verboseu-wu
--verbose2u-du--debugu-Wu
--verbose3u-Gu
--failfastu-qu--quietiu-xu	--excludeu-Su--startu-su--singleu-ou--slowu-ru--randomizeu
--randseedu-fu
--fromfileu-mu--matchu-lu--findleaksu-Lu
--runleaksu-tu--thresholdu-Tu
--coverageu-Du
--coverdiru-Nu--nocoverdiru-Ru--huntrleaksu:iiu)-R takes 2 or 3 colon-separated argumentsiiu
reflog.txtu-Mu
--memlimitu-uu--usecSsg|]}|j��qS((ulower(u.0ux((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
<listcomp>�s	umain.<locals>.<listcomp>u,uallunoneu-uInvalid -u/--use option: u-nu--nowindowsu-Fu	--foreveru-ju--multiprocessu--headeru--slaveargsuu	--testdiru	--timeoutudump_traceback_lateruFWarning: The timeout option requires faulthandler.dump_traceback_lateru--waituPress any key to continue...uQNo handler for option {}.  Please report this as a bug at http://bugs.python.org.ufileu-s and -f don't go together!u-T and -j don't go together!u-l and -j don't go together!u-M and -j don't go together!u#-G/--failfast needs either -v or -Wu%No GC available, disabling findleaks.u
pynexttesturu\[\s*\d+/\s*\d+\]u#u==u==  ualiasedu	%s-endianuTesting with flags:u1Couldn't find starting test (%s), using all testsuUsing random seedu
ignoredirsutraceucountcs�|\}}�j||f�|tkr;�j|�n}|tkrW�j|�na|tkrs�j|�nE|tkr��j|�n)|tkr��j|��j|�ndS(N(uappenduPASSEDuFAILEDuENV_CHANGEDuSKIPPEDuRESOURCE_DENIED(utesturesultuoku	test_time(ubaduenvironment_changedugooduresource_deniedsuskippedu
test_times(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuaccumulate_resultEs
umain.<locals>.accumulate_resultc3s*x#x|D]}|V�r
dSq
WqdS(N((utestsutest(ubad(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyutest_foreverUs

umain.<locals>.test_foreveru/{}(uThreadu+Multiprocess option requires thread support(uQueue(uPopenuPIPEu
\[\d+ refs\]$u
test.regrtestcs�y�x�yt�	�}Wn#tk
r;�jd�dSYnX|�
�
ftd�d�d�d�d�d�d��f}��dtj|�gd	�d
�dddtj	d
kdt
j�}|j�\}}|j
�}�jd|�}|j�jd�\}}}|dkrZtd|f}�j||j�|j�|f�dS|sq�jd�dStj|�}�j||j�|j�|f�qWn"tk
r��jd��YnXdS(Nu
huntrleaksu
use_resourcesudebuguoutput_on_failureutimeoutufailfastumatch_testsu--slaveargsustdoutustderruuniversal_newlinesu	close_fdsuntucwduu
iuExit code %s(NNNNT(NNNN(NNNN(unextu
StopIterationuputuNoneudictujsonudumpsuTrueuosunameusupportuSAVEDCWDucommunicateuwaitusubustripu
rpartitionuCHILD_ERRORurstripuloadsu
BaseException(utestu
args_tupleupopenustdoutustderruretcodeu_uresult(uPIPEuPopenubase_cmdudebugudebug_output_patufailfastu
huntrleaksumatch_testsuoutputupendinguquietutimeoutu
use_resourcesuverboseuverbose3(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuworkpsB

	%
,

umain.<locals>.workcsg|]}�d���qS(utarget((u.0ui(uThreaduwork(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
<listcomp>�s	u[{1:{0}}{2}/{3}] {4}u[{1:{0}}{2}] {4}uChild error on {}: {}u.runtest(test, verbose, quiet, timeout=timeout)uglobalsulocalsuoutput_on_failureutimeoutumatch_testsuWarning: test createduendu uuncollectable object(s).utest.u(Test suite interrupted by signal SIGINT.utestuomitted:uAlluOK.ureverseu10 slowest tests:i
u	%s: %.1fsufailed:u%{} altered the execution environment:uskipped:uskipu
unexpected onuThose skips are all expected onu.u6Ask someone to teach regrtest.py about which tests areuexpected to get skipped onu'Re-running failed tests in verbose modeu"Re-running test %r in verbose modeuwu
ushow_missingusummaryucoverdiruleaks %dTF(u-hu--help(u-vu	--verbose(u-wu
--verbose2(u-du--debug(u-Wu
--verbose3(u-Gu
--failfast(u-qu--quiet(u-xu	--exclude(u-Su--start(u-su--single(u-ou--slow(u-ru--randomize(u-fu
--fromfile(u-mu--match(u-lu--findleaks(u-Lu
--runleaks(u-tu--threshold(u-Tu
--coverage(u-Du
--coverdir(u-Nu--nocoverdir(u-Ru--huntrleaks(ii(u-Mu
--memlimit(u-uu--use(u-nu--nowindows(u-Fu	--forever(u-ju--multiprocess(�ufaulthandleruenableuTrueuhasattrusignaluappenduSIGALRMuSIGUSR1uregisterureplace_stdoutusupporturecord_original_stdoutusysustdoutugetoptuargvuerroruusageuNoneurandomu	randrangeuFalseuprintu__doc__uintugcu
set_thresholduosupathujoinuSAVEDCWDusplitulenuwarm_cachesuset_memlimituRESOURCE_NAMESuremoveumsvcrtuSetErrorModeuSEM_FAILCRITICALERRORSuSEM_NOALIGNMENTFAULTEXCEPTuSEM_NOGPFAULTERRORBOXuSEM_NOOPENFILEERRORBOXuCrtSetReportModeuAttributeErroruCRT_WARNu	CRT_ERRORu
CRT_ASSERTuCRTDBG_MODE_FILEuCrtSetReportFileuCRTDBG_FILE_STDERRumultiprocessingu	cpu_countuImportErroruNotImplementedErrorujsonuloadsuruntestuKeyboardInterruptuINTERRUPTEDu
BaseExceptionu	tracebacku	print_excuCHILD_ERRORustruflushudumpsuexitufloatuinputuformatustderru
max_memuseuTEMPDIRuopenureadustripucloseuIOErrorureucompileusubu
startswithuextenduremovepyuSTDTESTSuNOTTESTSucopyuadduplatformupython_implementationuversionu	byteorderugetcwduflagsu	findtestsulistusetuindexu
IndexErroru
ValueErroruseedushuffleutraceutempfileuTraceubase_prefixubase_exec_prefixu
gettempdiruverboseu
use_resourcesumodulesukeysuiteru	threadinguThreaduqueueuQueueu
subprocessuPopenuPIPEuMultiprocessTestsuargs_from_interpreter_flagsu
executableurangeustartugetu	Exceptionuinterruptedu	enumerateurunctxuglobalsuvarsucollectugarbageuunloaducountu	printlistusortusortedu_ExpectedSkipsuisvalidugetexpecteduwriteuunlinkuresultsu
write_resultsusystemugetpid(Nutestsutestdiruverboseuquietuexcludeusingleu	randomizeufromfileu	findleaksu
use_resourcesutraceucoverdirurunleaksu
huntrleaksuverbose2u
print_slowurandom_seeduuse_mpuverbose3uforeveruheaderufailfastumatch_testsusignalsusignumuoptsuargsumsgustartuouaugcuuururemoveumsvcrtumumultiprocessingukwargsuresultueuinterruptedu
found_garbageufilenameufpu	next_testu	count_patulineugutsustdtestsunottestsuargualltestsuselectedunext_single_testutempfileutracerusave_modulesuaccumulate_resultutest_foreveru
test_countutest_count_widthuQueueuopt_argsuworkersuworkerufinishedu
test_indexutestustdoutustderrufmtumoduleuomittedutimeuplatusurpriseuok((uPIPEuPopenuThreadubadubase_cmdudebugudebug_output_patuenvironment_changedufailfastugoodu
huntrleaksumatch_testsuoutputupendinguquieturesource_deniedsuskippedu
test_timesutimeoutu
use_resourcesuverboseuverbose3uworku2/opt/alt/python33/lib64/python3.3/test/regrtest.pyumains
	

																









		

%

	
	






		





	%



		!		

	<+"


		


	

		

	

*

'
	


		 




"
umainutest_grammarutest_opcodesu	test_dictutest_builtinutest_exceptionsu
test_typesu
test_unittestutest_doctestu
test_doctest2utest_supportc	Cs�t|�}tj|�}g}t|�|B}xd|D]\}tjj|�\}}|dd�dkr8|dkr8||kr8|j|�q8q8W|t|�S(u-Return a list of all applicable test modules.Niutest_u.pyu(u.pyu(ufindtestdiruosulistdirusetupathusplitextuappendusorted(	utestdirustdtestsunottestsunamesutestsuothersunameumoduext((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu	findtests?s
.u	findtestscBs>|EeZdZdZdd�Zdd�Zdd�ZdS(	uMultiprocessTestsu8A thread-safe iterator over tests for multiprocess mode.cCs%d|_tj�|_||_dS(NF(uFalseuinterruptedu	threadinguLockulockutests(uselfutests((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu__init__Ps	uMultiprocessTests.__init__cCs|S(N((uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu__iter__UsuMultiprocessTests.__iter__c	Cs9|j�*|jr"td��nt|j�SWdQXdS(Nutests interrupted(ulockuinterruptedu
StopIterationunextutests(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu__next__Xs
	uMultiprocessTests.__next__N(u__name__u
__module__u__qualname__u__doc__u__init__u__iter__u__next__(u
__locals__((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuMultiprocessTestsLsuMultiprocessTestscskddl}tj�t�j�dd�jdddddd	�t_�fd
d�}|j|�dS(
u�Set stdout encoder error handler to backslashreplace (as stderr error
    handler) to avoid UnicodeEncodeError when printing a tracebackiNuwuencodinguerrorsubackslashreplaceuclosefdunewlineu
cstjj��t_dS(N(usysustdoutuclose((ustdout(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_stdoutjs
u&replace_stdout.<locals>.restore_stdoutF(uatexitusysustdoutuopenufilenouencodinguFalseuregister(uatexiturestore_stdout((ustdoutu2/opt/alt/python33/lib64/python3.3/test/regrtest.pyureplace_stdout^s		ureplace_stdoutc
Cs�|dk	r|t_n|	dk	}
|
r@tj|	dd�nz6|t_|r^dt_n|rIdt_t	j
dkr�tj�}|t	_
n t	j
}|j
d�|j�tj}tj}
zj|t_|t_t|||||dd�}|dtkr/|j�}|
j|�|
j�nWd|t_|
t_Xn(|t_t|||||d|�}|SWd|
r�tj�nt||�XdS(u�Run 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
    output_on_failure -- if true, display test output on failure
    timeout -- dump the traceback and exit if a test takes more than
               timeout seconds

    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
    uexitiudisplay_failureNTF(uNoneusupportu
use_resourcesufaulthandlerudump_traceback_lateruTrueumatch_testsufailfastuverboseuruntestustringiouiouStringIOuseekutruncateusysustdoutustderru
runtest_inneruFalseuFAILEDugetvalueuwriteuflushucancel_dump_traceback_laterucleanup_test_droppings(utestuverboseuquietu
huntrleaksudebugu
use_resourcesuoutput_on_failureufailfastumatch_testsutimeoutuuse_timeoutustreamuorig_stdoutuorig_stderruresultuoutput((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuruntestosJ			

				
	
	

uruntestcBsl|EeZdZdZdxZddxdd�ZdyZdd�Zdd�Z	dd�Z
dd �Zd!d"�Zd#d$�Z
d%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3d4�Zd5d6�Zd7d8�Zd9d:�Zd;d<�Zd=d>�Zd?d@�ZdAdB�ZdCdD�ZdEdF�ZdGdH�ZdIdJ�Z dKdL�Z!dMdN�Z"dOdP�Z#dQdR�Z$dSdT�Z%dUdV�Z&dWdX�Z'dYdZ�Z(d[d\�Z)d]d^�Z*d_d`�Z+dadb�Z,dcdd�Z-dedf�Z.dgdh�Z/didj�Z0dkdl�Z1dmdn�Z2dodp�Z3dqdr�Z4dsdt�Z5dudv�Z6dwS(zusaved_test_environmentu�Save 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(utestnameuverboseuquiet(uselfutestnameuverboseuquiet((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu__init__�s		usaved_test_environment.__init__usys.argvucwdu	sys.stdinu
sys.stdoutu
sys.stderru
os.environusys.pathusys.path_hooksu
__import__uwarnings.filtersuasyncore.socket_mapulogging._handlersulogging._handlerListusys.gettraceusys.warnoptionsuthreading._danglingu!multiprocessing.process._danglingusysconfig._CONFIG_VARSusysconfig._INSTALL_SCHEMESusupport.TESTFNcCs&ttj�tjtjdd�fS(N(uidusysuargv(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sys_argv�su#saved_test_environment.get_sys_argvcCs(|dt_|dtjdd�<dS(Nii(usysuargv(uselfu
saved_argv((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sys_argv�s
u'saved_test_environment.restore_sys_argvcCs
tj�S(N(uosugetcwd(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_cwd�susaved_test_environment.get_cwdcCstj|�dS(N(uosuchdir(uselfu	saved_cwd((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_cwd�su"saved_test_environment.restore_cwdcCstjS(N(usysustdout(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sys_stdout�su%saved_test_environment.get_sys_stdoutcCs
|t_dS(N(usysustdout(uselfusaved_stdout((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sys_stdout�su)saved_test_environment.restore_sys_stdoutcCstjS(N(usysustderr(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sys_stderr�su%saved_test_environment.get_sys_stderrcCs
|t_dS(N(usysustderr(uselfusaved_stderr((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sys_stderr�su)saved_test_environment.restore_sys_stderrcCstjS(N(usysustdin(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
get_sys_stdin�su$saved_test_environment.get_sys_stdincCs
|t_dS(N(usysustdin(uselfusaved_stdin((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sys_stdinsu(saved_test_environment.restore_sys_stdincCs"ttj�tjttj�fS(N(uiduosuenvironudict(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_os_environsu%saved_test_environment.get_os_environcCs2|dt_tjj�tjj|d�dS(Nii(uosuenvironuclearuupdate(uselfu
saved_environ((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_os_environs

u)saved_test_environment.restore_os_environcCs&ttj�tjtjdd�fS(N(uidusysupath(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sys_path
su#saved_test_environment.get_sys_pathcCs(|dt_|dtjdd�<dS(Nii(usysupath(uselfu
saved_path((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sys_paths
u'saved_test_environment.restore_sys_pathcCs&ttj�tjtjdd�fS(N(uidusysu
path_hooks(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sys_path_hookssu)saved_test_environment.get_sys_path_hookscCs(|dt_|dtjdd�<dS(Nii(usysu
path_hooks(uselfusaved_hooks((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sys_path_hookss
u-saved_test_environment.restore_sys_path_hookscCs
tj�S(N(usysugettrace(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sys_gettracesu'saved_test_environment.get_sys_gettracecCstj|�dS(N(usysusettrace(uselfu	trace_fxn((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sys_gettracesu+saved_test_environment.restore_sys_gettracecCstjS(N(ubuiltinsu
__import__(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget___import__su%saved_test_environment.get___import__cCs
|t_dS(N(ubuiltinsu
__import__(uselfuimport_((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore___import__su)saved_test_environment.restore___import__cCs&ttj�tjtjdd�fS(N(uiduwarningsufilters(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_warnings_filters su+saved_test_environment.get_warnings_filterscCs(|dt_|dtjdd�<dS(Nii(uwarningsufilters(uselfu
saved_filters((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_warnings_filters"s
u/saved_test_environment.restore_warnings_filterscCs+tjjd�}|r'|jj�p*iS(Nuasyncore(usysumodulesugetu
socket_mapucopy(uselfuasyncore((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_asyncore_socket_map&su.saved_test_environment.get_asyncore_socket_mapcCsEtjjd�}|dk	rA|jdd�|jj|�ndS(Nuasyncoreu
ignore_allT(usysumodulesugetuNoneu	close_alluTrueu
socket_mapuupdate(uselfu	saved_mapuasyncore((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_asyncore_socket_map*su2saved_test_environment.restore_asyncore_socket_mapcCstjtjj�fS(N(ushutilu_ARCHIVE_FORMATSucopy(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_shutil_archive_formats0su1saved_test_environment.get_shutil_archive_formatscCs2|dt_tjj�tjj|d�dS(Nii(ushutilu_ARCHIVE_FORMATSuclearuupdate(uselfusaved((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_shutil_archive_formats5s

u5saved_test_environment.restore_shutil_archive_formatscCstjtjj�fS(N(ushutilu_UNPACK_FORMATSucopy(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_shutil_unpack_formats:su0saved_test_environment.get_shutil_unpack_formatscCs2|dt_tjj�tjj|d�dS(Nii(ushutilu_UNPACK_FORMATSuclearuupdate(uselfusaved((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_shutil_unpack_formats<s

u4saved_test_environment.restore_shutil_unpack_formatscCs"ttj�tjtjj�fS(N(uiduloggingu	_handlersucopy(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_logging__handlersAsu,saved_test_environment.get_logging__handlerscCsdS(N((uselfusaved_handlers((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_logging__handlersDsu0saved_test_environment.restore_logging__handlerscCs&ttj�tjtjdd�fS(N(uiduloggingu_handlerList(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_logging__handlerListHsu/saved_test_environment.get_logging__handlerListcCsdS(N((uselfusaved_handlerList((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_logging__handlerListKsu3saved_test_environment.restore_logging__handlerListcCs&ttj�tjtjdd�fS(N(uidusysuwarnoptions(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sys_warnoptionsOsu*saved_test_environment.get_sys_warnoptionscCs(|dt_|dtjdd�<dS(Nii(usysuwarnoptions(uselfu
saved_options((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sys_warnoptionsQs
u.saved_test_environment.restore_sys_warnoptionscCsts
dStjj�S(N(u	threadinguNoneu	_danglingucopy(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_threading__danglingWsu.saved_test_environment.get_threading__danglingcCs+ts
dStjj�tjj|�dS(N(u	threadingu	_danglinguclearuupdate(uselfusaved((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_threading__dangling\s
u2saved_test_environment.restore_threading__danglingcCsts
dStjjj�S(N(umultiprocessinguNoneuprocessu	_danglingucopy(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu%get_multiprocessing_process__danglingcsu<saved_test_environment.get_multiprocessing_process__danglingcCs1ts
dStjjj�tjjj|�dS(N(umultiprocessinguprocessu	_danglinguclearuupdate(uselfusaved((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu)restore_multiprocessing_process__danglinghsu@saved_test_environment.restore_multiprocessing_process__danglingcCs/tjd�ttj�tjttj�fS(Nuprefix(u	sysconfiguget_config_varuidu_CONFIG_VARSudict(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sysconfig__CONFIG_VARSns
u1saved_test_environment.get_sysconfig__CONFIG_VARScCs2|dt_tjj�tjj|d�dS(Nii(u	sysconfigu_CONFIG_VARSuclearuupdate(uselfusaved((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_sysconfig__CONFIG_VARSss

u5saved_test_environment.restore_sysconfig__CONFIG_VARScCs"ttj�tjtjj�fS(N(uidu	sysconfigu_INSTALL_SCHEMESucopy(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_sysconfig__INSTALL_SCHEMESxsu5saved_test_environment.get_sysconfig__INSTALL_SCHEMEScCs2|dt_tjj�tjj|d�dS(Nii(u	sysconfigu_INSTALL_SCHEMESuclearuupdate(uselfusaved((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu"restore_sysconfig__INSTALL_SCHEMES{s

u9saved_test_environment.restore_sysconfig__INSTALL_SCHEMEScCsFtjjtj�rd}n$tjjtj�r<d}nd}|S(Nufud(uosupathuisfileusupportuTESTFNuisdiruNone(uselfuresult((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuget_support_TESTFN�s		u)saved_test_environment.get_support_TESTFNcCsc|dkr_tjjtj�r4tjtj�q_tjjtj�r_tj	tj�q_ndS(N(
uNoneuosupathuisfileusupportuTESTFNuunlinkuisdirushutilurmtree(uselfusaved_value((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurestore_support_TESTFN�s
u-saved_test_environment.restore_support_TESTFNccs^xW|jD]L}|jdd�}d|}d|}|t||�t||�fVq
WdS(Nu.u_uget_urestore_(u	resourcesureplaceugetattr(uselfunameu
method_suffixuget_nameurestore_name((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
resource_info�s


u$saved_test_environment.resource_infocCs&tdd�|j�D��|_|S(Ncss'|]\}}}||�fVqdS(N((u.0unameugeturestore((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu	<genexpr>�su3saved_test_environment.__enter__.<locals>.<genexpr>(udictu
resource_infousaved_values(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu	__enter__�su saved_test_environment.__enter__c
Cs�|j}|`x�|j�D]�\}}}|�}|j|�}	||	krd|_||	�|js�tdj||j�dt	j
�|jdkr�tdj|	|�dt	j
�q�q�qqWdS(Nu Warning -- {} was modified by {}ufileiu  Before: {}
  After:  {} TF(
usaved_valuesu
resource_infoupopuTrueuchangeduquietuprintuformatutestnameusysustderruverboseuFalse(
uselfuexc_typeuexc_valuexc_tbusaved_valuesunameugeturestoreucurrentuoriginal((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu__exit__�s"			
		
	usaved_test_environment.__exit__NF(usys.argvucwdu	sys.stdinu
sys.stdoutu
sys.stderru
os.environusys.pathusys.path_hooksu
__import__uwarnings.filtersuasyncore.socket_mapulogging._handlersulogging._handlerListusys.gettraceusys.warnoptionsuthreading._danglingu!multiprocessing.process._danglingusysconfig._CONFIG_VARSusysconfig._INSTALL_SCHEMESusupport.TESTFN(7u__name__u
__module__u__qualname__u__doc__uFalseuchangedu__init__u	resourcesuget_sys_argvurestore_sys_argvuget_cwdurestore_cwduget_sys_stdouturestore_sys_stdoutuget_sys_stderrurestore_sys_stderru
get_sys_stdinurestore_sys_stdinuget_os_environurestore_os_environuget_sys_pathurestore_sys_pathuget_sys_path_hooksurestore_sys_path_hooksuget_sys_gettraceurestore_sys_gettraceuget___import__urestore___import__uget_warnings_filtersurestore_warnings_filtersuget_asyncore_socket_mapurestore_asyncore_socket_mapuget_shutil_archive_formatsurestore_shutil_archive_formatsuget_shutil_unpack_formatsurestore_shutil_unpack_formatsuget_logging__handlersurestore_logging__handlersuget_logging__handlerListurestore_logging__handlerListuget_sys_warnoptionsurestore_sys_warnoptionsuget_threading__danglingurestore_threading__danglingu%get_multiprocessing_process__danglingu)restore_multiprocessing_process__danglinguget_sysconfig__CONFIG_VARSurestore_sysconfig__CONFIG_VARSuget_sysconfig__INSTALL_SCHEMESu"restore_sysconfig__INSTALL_SCHEMESuget_support_TESTFNurestore_support_TESTFNu
resource_infou	__enter__u__exit__(u
__locals__((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyusaved_test_environment�stusaved_test_environmentcs�tj|�d}d}y�|jd�r4|}n
d|}t|||���}	tj�}
t|t�t�g�}t	||�}t	|dd�}
|
dkr�tj�j
|���fdd�}
n|
�|r�t|||
|�}ntj�|
}WdQXWn�tjk
rg}z5|sKt|d|�tjj�nt|fSWYdd}~Xn[tjk
r�}z5|s�t|d|�tjj�nt|fSWYdd}~Xntk
r��Yn�tjk
rN}zZ|rtd|d|d	tj�ntd|d
d	tj�tjj�t|fSWYdd}~Xnttj�}td|d|d	tj�tjj�t|fSYn.X|r�t|fS|	jr�t|fSt|fSdS(
Ngutest.u	test_maincs
tj��S(N(usupporturun_unittest((utests(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu<lambda>�suruntest_inner.<locals>.<lambda>u
skipped --utestu	failed --ufileufailedu
crashed --F( usupportuunloaduFalseu
startswithusaved_test_environmentutimeu
__import__uglobalsulocalsugetattruNoneuunittestu
TestLoaderuloadTestsFromModuleudash_RuResourceDenieduprintusysustdoutuflushuRESOURCE_DENIEDuSkipTestuSKIPPEDuKeyboardInterruptu
TestFailedustderruFAILEDu	tracebacku
format_excuchangeduENV_CHANGEDuPASSED(utestuverboseuquietu
huntrleaksudebugudisplay_failureu	test_timeurefleakuabstestuenvironmentu
start_timeuthe_packageu
the_moduleutest_runnerumsg((utestsu2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
runtest_inner�s`
	




	
u
runtest_innerc	Csjddl}ddl}ddl}|j�x5tjdfD]$}tjj|�s\q>ntjj	|�r�d|j
}}n5tjj|�r�dtj}}nt
d|��|r�td|||f�nyAttd�rtj||j|jB|jB�n||�Wq>tk
ra}z(td||||fdtj�WYdd}~Xq>Xq>WdS(	Niudb_homeu	directoryufileu8os.path says %r exists but is neither directory nor fileu%r left behind %s %ruchmodu3%r left behind %s %r and it couldn't be removed: %s(ushutilustatugcucollectusupportuTESTFNuosupathuexistsuisdirurmtreeuisfileuunlinkuSystemErroruprintuhasattruchmoduS_IRWXUuS_IRWXGuS_IRWXOu	Exceptionusysustderr(	utestnameuverboseushutilustatugcunameukindunukerumsg((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyucleanup_test_droppings�s.
	

$ucleanup_test_droppingscs�ddl}ddl�ttd�s6td��ntjdd�}|jj�}tj	j�}yddl
}Wntk
r�d}	YnX|j
j�}	i}
xj�fdd��jjD�D]I}t|�s�q�nx.|j�|gD]}|jj�|
|<q�Wq�W�r/�fdd�}
n�fd	d�}
g}|\}}}tjjtj|�}||}td
|ddtj�td
|ddd|�dtj�tjj�t||||	|
�x�t|�D]x}tj�}|
�tjjd�tjj�t||||	|
�tj�}||kr�|j||�q�q�Wtdtj�t |�r�d||t!|�f}t|dtj�tjj�t"|d��!}t|d|�|j�WdQXdSdS(u�Run a test multiple times, looking for reference leaks.

    Returns:
        False if the test didn't leak references; True if we detected refleaks.
    iNugettotalrefcountu9Tracking reference leaks requires a debug build of Pythoncs"g|]}t�j|��qS((ugetattruabc(u.0ua(ucollections(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
<listcomp>-s	udash_R.<locals>.<listcomp>cs��dS(N(((u
indirect_test(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurun_the_test4sudash_R.<locals>.run_the_testcs"tj�j=td�j�dS(Nuimport (usysumodulesu__name__uexec((u
the_module(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyurun_the_test7s
u	beginningurepetitionsufileu
1234567890i
iu.u%s leaked %s references, sum=%suaTF(%ucopyregucollections.abcuhasattrusysu	Exceptionuwarningsufiltersudispatch_tableucopyupath_importer_cacheu	zipimportuImportErroruNoneu_zip_directory_cacheuabcu__all__u
isabstractu__subclasses__u
_abc_registryuosupathujoinusupportuSAVEDCWDuprintustderruflushudash_R_cleanupurangeugettotalrefcountuwriteuappenduanyusumuopenuTrueuFalse(u
the_moduleutestu
indirect_testu
huntrleaksucopyregufsupsupicu	zipimportuzdcuabcsuabcuobjurun_the_testudeltasunwarmupuntrackedufnameurepcountuiu	rc_beforeurc_afterumsgurefrep((ucollectionsu
indirect_testu
the_moduleu2/opt/alt/python33/lib64/python3.3/test/regrtest.pyudash_Rs`
&
)


udash_Rcs�ddl}ddl}ddl}ddl}ddl}	ddl}	ddl}
ddl}ddl}ddl	}
ddl
�ddlm}ddl
m}x/tjj�D]}t|d�r�|`q�q�W|tjdd�<|jj�|jj|�tjj�tjj|�yddl}Wntk
rGYnX|jj�|jj|�tj�x��fdd��jjD�D]n}t |�s�q�nxS|j!�|gD]>}|j"||��j#�|_$|j%j�|j&j�q�Wq�Wx?tj'tj(tj)tj*fD]}|dk	r |j,�q q W|j�t-j.�|j/j�|	j0j1�|	j2j3�|j4�|
j5�|
j6j�|j7�d|_8yddl9}Wntk
r�YnX|j:�|j;�dS(Ni(u
_path_created(uWeakSetu__warningregistry__cs"g|]}t�j|��qS((ugetattruabc(u.0ua(ucollections(u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
<listcomp>vs	u"dash_R_cleanup.<locals>.<listcomp>(<ugcucopyregu	_strptimeu	linecacheuurllib.parseuurllib.requestu	mimetypesudoctestustructufilecmpucollections.abcudistutils.dir_utilu
_path_createduweakrefuWeakSetusysumodulesuvaluesuhasattru__warningregistry__uwarningsufiltersudispatch_tableuclearuupdateupath_importer_cacheu	zipimportuImportErroru_zip_directory_cacheu_clear_type_cacheuabcu__all__u
isabstractu__subclasses__ugetucopyu
_abc_registryu
_abc_cacheu_abc_negative_cacheustdoutustderru
__stdout__u
__stderr__uNoneuflushureupurgeu_regex_cacheuparseuclear_cacheurequestu
urlcleanupu
clearcacheu_default_mime_typesu_cacheu_clearcacheumasteructypesu_reset_cacheucollect(ufsupsupicuzdcuabcsugcucopyregu	_strptimeu	linecacheuurllibu	mimetypesudoctestustructufilecmpu
_path_createduWeakSetumodu	zipimportuabcuobjustreamuctypes((ucollectionsu2/opt/alt/python33/lib64/python3.3/test/regrtest.pyudash_R_cleanupWs^0$





&
%








	

udash_R_cleanupcCsmttd��}x&td�D]}|||d�qWdd�td�D�}ttdd��}dS(NiicSsg|]}t|��qS((uchr(u.0ui((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu
<listcomp>�s	uwarm_caches.<locals>.<listcomp>iii����(ubytesurangeulist(usuiux((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuwarm_caches�s
uwarm_cachescCs|ptjjt�ptjS(N(uosupathudirnameu__file__ucurdir(upath((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyufindtestdir�sufindtestdircCs\|s
dSxKt|�D]=\}}tjj|�\}}|dkr|||<qqWdS(Nu.py(u	enumerateuosupathusplitext(unamesuidxunameubasenameuext((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuremovepy�suremovepycCs,|dkrd||fSd||fSdS(Niu%d %su%d %ss((unuword((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyucount�sucountiFcCsYddlm}d|}t|djdd�t|�D��|d|d|��dS(	u�Print the elements of iterable x to stdout.

    Optional arg width (default 70) is the maximum line length.
    Optional arg indent (default 4) is the number of blanks with which to
    begin each line.
    i(ufillu css|]}t|�VqdS(N(ustr(u.0uelt((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu	<genexpr>�suprintlist.<locals>.<genexpr>uinitial_indentusubsequent_indentN(utextwrapufilluprintujoinusorted(uxuwidthuindentufillublanks((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu	printlist�s
+u	printlistuwin32u%
        test__locale
        test_crypt
        test_curses
        test_dbm
        test_devpoll
        test_fcntl
        test_fork1
        test_epoll
        test_dbm_gnu
        test_dbm_ndbm
        test_grp
        test_ioctl
        test_largefile
        test_kqueue
        test_openpty
        test_ossaudiodev
        test_pipes
        test_poll
        test_posix
        test_pty
        test_pwd
        test_resource
        test_signal
        test_syslog
        test_threadsignals
        test_wait3
        test_wait4
        ulinuxuv
        test_curses
        test_devpoll
        test_largefile
        test_kqueue
        test_ossaudiodev
        uunixwareu�
        test_epoll
        test_largefile
        test_kqueue
        test_minidom
        test_openpty
        test_pyexpat
        test_sax
        test_sundry
        uopenunixusco_svuv
        test_asynchat
        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
        u�
        test__locale
        test_curses
        test_devpoll
        test_epoll
        test_dbm_gnu
        test_gdb
        test_largefile
        test_locale
        test_minidom
        test_ossaudiodev
        test_poll
        usunosu�
        test_curses
        test_dbm
        test_epoll
        test_kqueue
        test_dbm_gnu
        test_gzip
        test_openpty
        test_zipfile
        test_zlib
        uhp-uxu

        test_curses
        test_epoll
        test_dbm_gnu
        test_gzip
        test_largefile
        test_locale
        test_kqueue
        test_minidom
        test_openpty
        test_pyexpat
        test_sax
        test_zipfile
        test_zlib
        ucygwinu�
        test_curses
        test_dbm
        test_devpoll
        test_epoll
        test_ioctl
        test_kqueue
        test_largefile
        test_locale
        test_ossaudiodev
        test_socketserver
        uos2emxu�
        test_audioop
        test_curses
        test_epoll
        test_kqueue
        test_largefile
        test_mmap
        test_openpty
        test_ossaudiodev
        test_pty
        test_resource
        test_signal
        ufreebsduO
        test_devpoll
        test_epoll
        test_dbm_gnu
        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
        uaixu�
        test_bz2
        test_epoll
        test_dbm_gnu
        test_gzip
        test_kqueue
        test_ossaudiodev
        test_tcl
        test_tk
        test_ttk_guionly
        test_ttk_textonly
        test_zipimport
        test_zlib
        uopenbsdu'
        test_ctypes
        test_devpoll
        test_epoll
        test_dbm_gnu
        test_locale
        test_normalization
        test_ossaudiodev
        test_pep277
        test_tcl
        test_tk
        test_ttk_guionly
        test_ttk_textonly
        test_multiprocessing
        unetbsdu 
        test_ctypes
        test_curses
        test_devpoll
        test_epoll
        test_dbm_gnu
        test_locale
        test_ossaudiodev
        test_pep277
        test_tcl
        test_tk
        test_ttk_guionly
        test_ttk_textonly
        test_multiprocessing
        cBs8|EeZdZdd�Zdd�Zdd�ZdS(u_ExpectedSkipscCs�ddl}ddlm}d|_d}x2tD]*}tjj	|d�r2|d}Pq2q2W|dk	r�t
|j��|_|jj
d�|jjs�|jj
d�nd}tj�j�|kr|jj
d�|jj
d
�|jj
d�n|jr|jj
d�ntjdkrVddddddh}|j|O_ntjdkrx|jj
d�ntj�r�|jj
d�nd|_ndS(Ni(utest_timeoutiutest_nisutest_pep277uutf-8ulatin-1uasciiumbcsuutf-16uutf-32utest_profileu
test_cProfileutest_doctestutest_timeoutuwin32utest_unicode_fileutest_winregu
test_winsoundutest_startfileutest_sqliteutest_msilibusunos5utest_gdbF(uutf-8ulatin-1uasciiumbcsuutf-16uutf-32T(uos.pathutestutest_timeoutuFalseuvaliduNoneu
_expectationsusysuplatformu
startswithusetusplituexpecteduaddupathusupports_unicode_filenamesugetfilesystemencodinguloweru
skip_expectedusupportupython_is_optimizeduTrue(uselfuosutest_timeoutuexpecteduitemuencsuWIN_ONLY((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu__init__�s<	

	u_ExpectedSkips.__init__cCs|jS(u@Return true iff _ExpectedSkips knows about the current platform.(uvalid(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyuisvalid�su_ExpectedSkips.isvalidcCs|j�st�|jS(unReturn set of test names we expect to skip on current platform.

        self.isvalid() must be true.
        (uisvaliduAssertionErroruexpected(uself((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyugetexpected�su_ExpectedSkips.getexpectedN(u__name__u
__module__u__qualname__u__init__uisvalidugetexpected(u
__locals__((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu_ExpectedSkips�s1u_ExpectedSkipscCs�tj�retjjtjd�d�}tjj|�}ytj|�Wqetk
raYqeXndj	tj
��}tjj||�}||fS(Nusrcdirubuildutest_python_{}(u	sysconfiguis_python_builduosupathujoinuget_config_varuabspathumkdiruFileExistsErroruformatugetpid(uTEMPDIRuTESTCWD((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu_make_temp_dir_for_build�s
u_make_temp_dir_for_buildu__main__uquiet(]u__doc__u	importlibubuiltinsufaulthandlerugetoptuioujsonulogginguosuplatformurandomureushutilusignalusysu	sysconfigutempfileutimeu	tracebackuunittestuwarningsuinspectu
isabstractu	threadinguImportErroruNoneumultiprocessing.processumultiprocessingumodulesuvaluesumoduleuhasattru__path__upathuabspathu__file__uresourceu	getrlimituRLIMIT_STACKusoftuharduminumaxunewsoftu	setrlimituPASSEDuFAILEDuENV_CHANGEDuSKIPPEDuRESOURCE_DENIEDuINTERRUPTEDuCHILD_ERRORutestusupportuRESOURCE_NAMESu
gettempdiruTEMPDIRuusageuFalseumainuSTDTESTSusetuNOTTESTSu	findtestsuobjectuMultiprocessTestsureplace_stdouturuntestustringiousaved_test_environmentuTrueu
runtest_innerucleanup_test_droppingsudash_Rudash_R_cleanupuwarm_cachesufindtestdiruremovepyucountu	printlistu
_expectationsu_ExpectedSkipsu_make_temp_dir_for_buildu__name__unormpathudirnameuargvumydirulenuiuAssertionErroruTESTCWDutemp_cwd(((u2/opt/alt/python33/lib64/python3.3/test/regrtest.pyu<module>�s


	
��,		
		D	
�9*CC




?1
+%