tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
N\¬Qc@sådZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZx~ejjƒD]mZeedƒrgejD]Zejjeƒ^qõe_needƒrCejjejƒe_nqÖWejdkrÊyddlZWnek
rynNXejejƒ\ZZeee eddƒƒZ!ej"eje!efƒndZ#d    Z$dZ%d
Z&d Z'd Z(dd l)m*Z*dddddddddddf Z+ejje j,ƒƒZ-dd„Z.e/e/d    e0e0e0e0e/e0e/e0de0e0e0e0e/e/e0e0e0d„Z1dddd d!d"d#d$d%g    Z2d&d'd(hZ3e/e2e3d)„Z4e0e/d*„Z5d+fd,„ƒYZ6e0d-„Z7d.„Z8d/„Z9d0„Z:e/d1„Z;d2„Z<d3„Z=d4d5d6„Z>id7d86d9d:6d;d<6d;d=6d>d?6d@dA6dBd6dCdD6dEdF6dGdH6dIdJ6dKdL6dMdN6dOdP6dQdR6dSdT6Z?e?dNe?dU<e?dNe?dV<e?dNe?dW<e?dNe?dX<dYfdZ„ƒYZ@eAd[kráejjeƒZeejjejBd    ƒksMtC‚ejDƒr‘ejjd\ƒZ-ejjEe-ƒ rŽejFe-ƒnnd]jGejHƒƒZIejjJe-eIƒZIe*jKeId^eLƒ e1ƒWdQXndS(_s
Usage:
 
python -m test.regrtest [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 -tt -Wd -3 -m test.regrtest [options] [test_name1 ...]
 
 
Options:
 
-h/--help       -- print this text and exit
 
Verbosity
 
-v/--verbose    -- run tests in verbose mode with output to stdout
-w/--verbose2   -- re-run failed tests in verbose mode
-W/--verbose3   -- re-run failed tests in verbose mode immediately
-q/--quiet      -- no output unless one or more tests fail
-S/--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)
-u/--use RES1,RES2,...
                -- specify which special resource intensive tests to run
-M/--memlimit LIMIT
                -- run very large memory-consuming tests
 
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)
-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.
 
-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.
 
    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.
 
    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,-<resource>'.  For
example, to run all the tests except for the bsddb tests, give the
option '-uall,-bsddb'.
iÿÿÿÿNt__path__t__file__tdarwiniiiiiþÿÿÿiýÿÿÿiüÿÿÿ(t test_supporttaudiotcursest    largefiletnetworktbsddbtdecimaltcput
subprocessturlfetchtguitxpickletcCs$tGH|r|GHntj|ƒdS(N(t__doc__tsystexit(tcodetmsg((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytusageßstcoveragecEsAtjtjƒyntjtjddddddddd    d
d d d dddddddddddddgƒ\}}Wn#tjk
r£}td|ƒnX|d:krÂt    j
dƒ}nˆd:kr×g‰nxq|D]i\}}|d•krtdƒqÞ|d–krˆd7‰qÞ|d—kr1t }qÞ|d˜krFt }qÞ|d™krat ‰
d‰qÞ|dškrvt }qÞ|d›kr‹t }qÞ|dœkr t }qÞ|dkrµt }qÞ|d0krÐt |ƒ}qÞ|džkrå|}qÞ|dŸkrút }qÞ|d krt } qÞ|d¡kr=d9d:l }|jt |ƒƒqÞ|d¢krRt }
qÞ|d£kr|tjjtjƒ|ƒ} qÞ|d¤kr‘d:} qÞ|d¥kr]|jdCƒ‰tˆƒd¦kr×|GˆGHtddEƒnˆdsîdFˆd<nt ˆdƒˆd<ˆdsdGˆd<nt ˆdƒˆd<tˆƒdksJˆd rGdHgˆd)qGqÞ|d§krytj|ƒqÞ|d¨krdg|jdMƒD]}|jƒ^q•}x—|D]©}|dNkrÓtˆ(q´nt}|ddOkrüt }|d}n|tkrtddP|ƒn|rA|ˆkr]ˆj|ƒq]q´|ˆkr´ˆj|ƒq´q´WqÞ|d©kryt }qÞ|dªkr”t |ƒ}qÞ|dUkr©t }qÞ|dVkr$tj|ƒ\}}yt||Ž} Wn%tk
r}!t|!j j!f} nXHtj"| ƒGHtj#dƒqÞtj$dWj%|ƒIJtj#dƒqÞW|rg|rgtddXƒn|rƒ|
rƒtddYƒn|rŸ|rŸtddZƒng‰g‰g‰ g‰ g‰t}"|ryd9d:l }Wnt&k
r÷d[GHt}qXg}#n|rqtjjt'j(ƒd\ƒ}$y8t)|$d]ƒ}%|%j*ƒj+ƒ}&|&g‰|%j,ƒWqqt-k
rmqqXn|rïg‰t)tjjtj.|ƒƒ}%xD|%D]<}'|'jƒ}(|(r¢|(dj/d^ƒ r¢ˆj0|(ƒq¢q¢W|%j,ƒnt1|ƒt1ˆƒt2})t3j4ƒ}*|r_x7|D]/}+|+|)krE|)j|+ƒn|*j5|+ƒq#Wg}nˆs„|s„ˆ
p€|p€ˆp€| rçd_Gt6j7ƒGd`jtj8jƒƒGHdaGt6j6dbt ƒGdctj9GHdaGtjƒGHddGtj:GHnt;||)|*ƒ},ˆp|p|,}-|rW|-d }-y|,|,j<|-dƒd}.WqWt=k
rSd:}.qWXn|rƒt    j>|ƒdeG|GHt    j?|-ƒn|
rÂd9d:l@}
|
jAdftjBtjCgdtdgt ƒ}/ng‰ ˆt_DtjEjFƒ}0‡‡‡‡ ‡ ‡ fdh†}1|r(    tG|-ƒ‡fdi†}2|2ƒ‰n tH|-ƒ‰|rm yd9djlImJ}3Wn#t&k
rs    dkGHtj#dƒnXd9dllKmK}4d9dmlLmM‰mN‰tOjPdnƒ‰|4ƒ‰‡‡
‡‡‡fdo†}5|5ƒ‰    tjQƒ}6tjRg|6dpdqg‰‡‡‡‡‡‡    ‡
fdr†}7gtS|ƒD]}8|3ds|7ƒ^q*
}9x|9D]}:|:jTƒqL
Wd};yÅx¾|;|kr) ˆjUƒ\}<}=}>} |<d:kr¬
|;d7};ql
n|=rº
|=GHn|>rÐ
tj$|>IJntjjVƒtj$jVƒ| dtkr | ddtks tW‚tX‚n|1|<| ƒql
WWn!tXk
rN t }"ˆ    j,ƒnXx|9D]}:|:jƒqV WndxaˆD]Y}<ˆ
s• |<GHtjjVƒn|
r½ |/jYdudvtZƒdwt[ƒƒny[t|<ˆˆ
ˆƒ} |1|<| ƒ|r | dt\kr dx|<GHt|<t ˆ
ˆƒnWn!tXk
r2 t }"Pn
‚nX|rˆ |j]ƒ|j^rˆ dyGt|j^ƒGdzGH|#j0|j^ƒ|j^2qˆ nxBtjEjFƒD]1}?|?|0kr˜ |?j/d{ƒr˜ tj_|?ƒq˜ q˜ Wqt W|"r, Hd|GHt`|-ƒt`ˆƒt`ˆƒt`ˆ ƒ}@tat|@ƒd}ƒGd~GHtb|@ƒnˆr‚ ˆ
r‚ ˆ rg ˆ rg |" rg tˆƒdkrg dGntatˆƒd}ƒGd€GHn|rÊ ˆ jcdt ƒd‚GHx*ˆ dƒ D]\}A}<d„|<|AfGHq¨ WnˆrDt`ˆƒt`ˆƒ‰ˆrtatˆƒd}ƒGd…GHtbˆƒnˆrDd†j%tatˆƒd}ƒƒGHtbˆƒqDnˆ r    ˆ
r    tatˆ ƒd}ƒGd‡GHtbˆ ƒtdƒ}!tj6}B|!jeƒrôt`ˆ ƒ|!jfƒt`ˆ ƒ}C|Crätat|CƒdˆƒGd‰G|BdCGHtb|CƒqdŠG|Bd‹GHq    dŒGHdG|Bd‹GHn|r…ˆr…dŽGHxhˆD]]}<dx|<GHtjjVƒy"t t_gt|<t ˆ
ˆƒ}DWq!tXk
rtHPq!‚q!Xq!Wn|rÍ|.r½t)|$dƒ}%|%jh|.dƒWd:QXqÍtji|$ƒn|
rþ|/jjƒ}|jkd‘t d’t d“| ƒn| rtjld”tjmƒƒntj#tˆƒdkp9|"ƒ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=tforevertheaderii€–˜s-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 --thresholdiÿÿÿÿNs-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Š|tkrWˆj|ƒnn|tkr€ˆj|ƒˆj|ƒnE|tkrœˆj|ƒn)|tkrňj|ƒˆj|ƒndS(N(tappendtPASSEDtFAILEDt ENV_CHANGEDtSKIPPEDtRESOURCE_DENIED(ttesttresulttokt    test_time(tbadtenvironment_changedtgoodtresource_deniedstskippedt
test_times(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytaccumulate_resultÆs        c3s1x*tr,x|D]}|VˆrdSqWqWdS(N(tTrue(ttestsR7(R;(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt test_forever×s
     (tThreads+Multiprocess option requires thread support(tQueue(tPopentPIPEs \[\d+ refs\]$c3sDx=ˆD]5}|ˆˆftdˆdˆƒf}||fVqWdS(Nt
huntrleakst use_resources(tdict(R7t
args_tuple(RIRRCRJR(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyttests_and_argsës  s-ms test.regrtestc sUy-x&tr+ytˆƒ\}}Wntk
rCˆjd    ƒdSXˆˆdtj|ƒgdˆdˆdtdtjdkƒ}|j    ƒ\}}ˆj
d|ƒ}|j ƒj dƒ\}}}|s݈jd
ƒdStj |ƒ}ˆs|d|}nˆj||jƒ|jƒ|fƒqWWn!tk
rPˆjd ƒ‚nXdS( Ns --slaveargststdouttstderrtuniversal_newlinest    close_fdstntRs
(NNNN(NNNN(NNNN(RBtnextt StopIterationtputtNonetjsontdumpstostnamet communicatetsubtstript
rpartitiontloadstrstript BaseException(R7RLtpopenRNROt_R8(RHRGtbase_cmdtdebug_output_pattoutputtpendingR(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytworkõs0        -  ttargettKeyboardInterruptsruntest(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 ImportErrorttempfilet
gettempdirtopentreadR]tclosetIOErrortSAVEDCWDt
startswithtextendtremovepytSTDTESTStNOTTESTStcopytaddtplatformtpython_implementationtversiont    byteordertflagst    findteststindext
IndexErrortseedtshuffleR!tTracetprefixt exec_prefixRJtmodulestkeystlisttitert    threadingRERFR RGRHtretcompiletargs_from_interpreter_flagst
executabletrangetstarttgettflushtAssertionErrorRjtrunctxRktvarsR3tcollecttgarbagetunloadtsetR0t    printlisttsortt_ExpectedSkipstisvalidt getexpectedRtwritetunlinktresultst write_resultstsystemtgetpid(ERCttestdirRRRRRtfromfileR RJR!RtR#RIRt
print_slowt random_seedtuse_mpRR$R%toptstargsRtotaR|txtuR+R‡tkwargsR8tet interruptedt found_garbagetfilenametfpt    next_testtlinetgutststdteststnotteststargtallteststselectedtnext_single_testttracert save_modulesRARDRERFRMtopt_argsRhtitworkerstworkertfinishedR7RNROtmoduletomittedttimetplattsurpriseR9((RHRGR;RdReR<R=RIRfRgRR>R?R@RCRJRsU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytmainåsh                                                                                
 
   (                           
            
 
       % 
                        !(  
                
     *  '  
                         t test_grammart test_opcodest    test_dictt test_builtinttest_exceptionst
test_typest test_unittestt test_doctestt test_doctest2Rt test_future1t test_future2c    Cs t|ƒ}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 findtestdirRYtlistdirR¼R~tsplitextR1tsorted(    RÈRÜRÝtnamesRCtothersRZtmodnametext((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyR¡¬s  (cCsM|t_|dk    r!|t_nzt||||ƒSWdt||ƒXdS(sõ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
    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((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyRˆ¸s       tsaved_test_environmentc    BsæeZdZeZded„Zd!Zd „Zd „Zd„Z    d„Z
d„Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „ZRS("sÈ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(ttestnameRR(tselfRRR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt__init__ìs        ssys.argvtcwds    sys.stdins
sys.stdouts
sys.stderrs
os.environssys.pathsasyncore.socket_mapstest_support.TESTFNcCsttjƒtjtjfS(N(tidRRw(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt get_sys_argvscCs|dt_|dtj(dS(Nii(RRw(Rt
saved_argv((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytrestore_sys_argvs cCs
tjƒS(N(RYR€(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytget_cwdscCstj|ƒdS(N(RYtchdir(Rt    saved_cwd((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt restore_cwdscCstjS(N(RRN(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytget_sys_stdout scCs |t_dS(N(RRN(Rt saved_stdout((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytrestore_sys_stdout scCstjS(N(RRO(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytget_sys_stderrscCs |t_dS(N(RRO(Rt saved_stderr((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytrestore_sys_stderrscCstjS(N(Rtstdin(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt get_sys_stdinscCs |t_dS(N(RR(Rt saved_stdin((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytrestore_sys_stdinscCs"ttjƒtjttjƒfS(N(R
RYtenvironRK(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytget_os_environscCs2|dt_tjjƒtjj|dƒdS(Nii(RYRtcleartupdate(Rt saved_environ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytrestore_os_environs  cCsttjƒtjtjfS(N(R
RR~(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt get_sys_path!scCs|dt_|dtj(dS(Nii(RR~(Rt
saved_path((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytrestore_sys_path#s cCs+tjjdƒ}|r'|jjƒp*iS(Ntasyncore(RR©R´t
socket_mapRš(RR%((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytget_asyncore_socket_map'scCsEtjjdƒ}|dk    rA|jdtƒ|jj|ƒndS(NR%t
ignore_all(RR©R´RVt    close_allRBR&R(Rt    saved_mapR%((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytrestore_asyncore_socket_map+s cCsFtjjtjƒrd}n$tjjtjƒr<d}nd}|S(Ntftd(RYR~tisfileRtTESTFNtisdirRV(RR8((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytget_test_support_TESTFN1s         cCsc|dkr_tjjtjƒr4tjtjƒq_tjjtjƒr_tj    tjƒq_ndS(N(
RVRYR~R.RR/RÃR0tshutiltrmtree(Rt saved_value((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pytrestore_test_support_TESTFN9s
 ccs^xW|jD]L}|jddƒ}d|}d|}|t||ƒt||ƒfVq
WdS(NRpRctget_trestore_(t    resourcestreplacetgetattr(RRZt method_suffixtget_namet restore_name((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt resource_info@s
 
 
cCs#td„|jƒDƒƒ|_|S(Ncss'|]\}}}||ƒfVqdS(N((t.0RZR´trestore((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pys    <genexpr>Hs(RKR>t saved_values(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt    __enter__Gs    c
CsÀ|j}|`xª|jƒD]œ\}}}|ƒ}|j|ƒ}    ||    krt|_||    ƒ|js¸tjdj||j    ƒIJ|j
dkrµtjdj|    |ƒIJqµq¸qqWt S(Ns Warning -- {} was modified by {}is  Before: {}
  After:  {} ( RAR>tpopRBtchangedRRRORŒRRR†(
Rtexc_typetexc_valtexc_tbRARZR´R@tcurrenttoriginal((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt__exit__Ls"             
    (    ssys.argvscwds    sys.stdins
sys.stdouts
sys.stderrs
os.environssys.pathsasyncore.socket_mapstest_support.TESTFN(R‹t
__module__RR†RDRR8R R RRRRRRRRRR!R"R$R'R+R1R5R>RBRJ(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyRÜs6                                                                                 c    Cs&tj|ƒ|rd}n tjƒ}d}t}yùtj}zß|rU|t_n|jdƒrm|}n
d|}t|||ƒ“}    t    j    ƒ}
t
|t ƒt ƒgƒ} t | |ƒ} t | ddƒ} | dk    rê| ƒn|rt| || |ƒ}nt    j    ƒ|
}WdQXWd|t_XWnbtjk
ro}|se|GdG|GHtjjƒnt|fStjk
r®}|s¤|GdG|GHtjjƒnt|fStk
rÁ‚natjk
r    }tjdI|IdI|IJtjjƒt|fStjƒd \}}tjdI|IdIt|ƒd    I|IJtjjƒ|r‡tjd
tjƒtjjƒnt|fSX|r¢t|fS|    jrµt|fS|sÁ|rËt|fS|j ƒ}|sçt|fSdG|Gd GHd d GH|GHd d GHtjjƒt|fSdS(Ngstest.t    test_mains
skipped --R7s    failed --is
crashed --R&tfilesproduced unexpected output:t*iF(!RR»RVtStringIOR†RRNR•RRët
__import__RkRlR:tdash_RtResourceDeniedRµR6tunittesttSkipTestR5Rjt
TestFailedROR3texc_infotstrt    tracebackt    print_excRDR4R2tgetvalue(R7RRRItcapture_stdoutR:trefleakt save_stdouttabstestt environmentt
start_timet the_packaget
the_modulet indirect_testRttypetvalueRf((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyRes‚               
 
 
 
 
/  
    
 
 
          cCsAddl}ddl}|jƒxtjdfD]}tjj|ƒsPq2ntjj|ƒrudt    j
}}n5tjj |ƒršdtj }}nt d|ƒ‚|rÅd|||fGHnyAttdƒrûtj||j|jB|jBƒn||ƒWq2tk
r8}tjd||||fIJq2Xq2WdS(    Niÿÿÿÿtdb_homet    directoryRMs8os.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|R¹RR/RYR~texistsR0R2R3R.RÃt SystemErrorthasattrRhtS_IRWXUtS_IRWXGtS_IRWXOt    ExceptionRRO(RRRiR|RZtkindtnukerR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyR²s,  
     
$
csËddl}ddl}ddl}ttdƒsBtdƒ‚ntj}|jj    ƒ}tj
j    ƒ}    yddl }
Wnt k
r“d} nX|
jj    ƒ} i} ||f} x€g| D]%}|jD]}t||ƒ^qÌq¿D]L}t|dƒsqènx.|jƒ|gD]}|jj    ƒ| |<qWqèWˆrP‡fd†}n‡fd†}g}|\}}}tjjtj|ƒ}||}tjdI|Id    IJtjd
|d d | IJt|||    | | ƒxyt|ƒD]k}tjƒ}|ƒtjjd ƒt|||    | | ƒtjƒ}||krï|j||ƒqïqïWtjJt|ƒrÇd||t|ƒf}tj|IJt |dƒ}||IJ|j!ƒWdQXt"St#S(sšRun a test multiple times, looking for reference leaks.
 
    Returns:
        False if the test didn't leak references; True if we detected refleaks.
    iÿÿÿÿNtgettotalrefcounts9Tracking reference leaks requires a debug build of Pythont _abc_registrycs ˆƒdS(N(((Rc(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt run_the_testúscstjˆƒdS(N(timptreload((Rb(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyRuýst    beginningt repetitionst
1234567890i
iRps%s leaked %s references, sum=%sRÐ($tcopy_regt_abcollt_pyioRlRRptwarningstfilterstdispatch_tableRštpath_importer_cachet    zipimportRRVt_zip_directory_cachet__all__R:t__subclasses__RtRYR~RRR”ROtdash_R_cleanupR²RsRÂR1tanytsumRRµRBR†(RbR7RcRIR{R|R}tfstpstpicR‚tzdctabcsR©tmodRÐtabctobjRutdeltastnwarmuptntrackedtfnametrepcountRåt    rc_beforetrc_afterRtrefrep((RcRbsU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyRQÙsZ$
 
 9
 
cCslddl}ddl}ddl}ddl}tjddtƒ}    ddl}
ddl} ddl    } ddl
} ddl }ddl }ddl }ddlm}x/tjjƒD]}t|dƒr¹|`q¹q¹W|tj(|jjƒ|jj|ƒtjjƒtjj|ƒyddl}Wntk
rBnX|jjƒ|jj|ƒtjƒxC|jƒD]5\}}|j ƒ|_!|j"jƒ|j#jƒqwW|jƒt$j%ƒ|j&jƒ|
j'ƒ| j(ƒ| j)dƒ|    j+ƒ|j,ƒ| j-ƒ|j.jƒ|j/ƒd|_0yddl1}Wntk
rSn X|j2ƒ|j3ƒdS(Niÿÿÿÿtdircachet
deprecated(t _path_createdt__warningregistry__(4R|R{t    _strptimet    linecacheRt import_moduleRBturlparseturllibturllib2t    mimetypestdoctesttstructtfilecmptdistutils.dir_utilR›RR©tvaluesRlRœR~RR€RRRR‚RRƒt_clear_type_cachetitemsRšRtt
_abc_cachet_abc_negative_cacheR®tpurget _regex_cachet clear_cachet
urlcleanuptinstall_openerRVtresett
clearcachet_default_mime_typest_cachet _clearcachetmastertctypest _reset_cacheR¹(R‰RŠR‹RŒRR|R{RRžR™R R¡R¢R£R¤R¥R¦R›RŽR‚RtregistryR¸((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyR†sV< 
 
 
 
 
 
 
 
 
 
     
cCs|ptjjtƒptjS(N(RYR~tdirnameRtcurdir(R~((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyRûUscCs\|s
dSxKt|ƒD]=\}}tjj|ƒ\}}|dkr|||<qqWdS(Ns.py(t    enumerateRYR~Rý(RÿtidxRZtbasenameR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyR—Xs  cCs,|dkrd||fSd||fSdS(Nis%d %ss%d %ss((tntword((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyR0`s iFicCsQddlm}d|}|djd„t|ƒDƒƒ|d|d|ƒGHdS(sÐ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ÿÿÿÿ(tfillR-css|]}t|ƒVqdS(N(RW(R?telt((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pys    <genexpr>qstinitial_indenttsubsequent_indentN(ttextwrapRÂRRþ(RÑtwidthtindentRÂtblanks((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyR½fs
%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
        tnetbsd3tfreebsd5tfreebsd6tfreebsd7tfreebsd8R¿cBs#eZd„Zd„Zd„ZRS(cCs0ddl}ddlm}t|_tjtkr,ttj}t|j    ƒƒ|_
|j
j dƒ|j j s…|j
j dƒn|jr¡|j
j dƒntjdkrÃ|j
j dƒntjdkrd    d
d d d dg}xO|D]}|j
j |ƒqñWn.tdjdƒƒdkr<|j
j d
ƒntjdkr‡ddddddg}x!|D]}|j
j |ƒqjWntjdkrÒddddddg}x!|D]}|j
j |ƒqµWntjdkr|j
j d ƒ|j
j d!ƒntjs |j
j d"ƒnt|_ndS(#Niÿÿÿÿ(t test_timeoutttest_linuxaudiodevt test_pep277RÜlÿÿÿÿt test_imageopRt
test_macosttest_macostoolst test_aepackt test_plistlibttest_scriptpackagesttest_applesingleusunicode-internaliRÊttest_unicode_filet test_winregt test_winsoundttest_startfilet test_sqlitet test_msilibtirixttest_alttest_cdttest_clttest_glt test_imgfileRÐttest_sunaudiodevttest_nist test_py3kwarn(tos.pathR7RÜR†tvalidRRœt _expectationsR¼RtexpectedR›R~tsupports_unicode_filenamest skip_expectedtmaxintR‚tencodet py3kwarningRB(RRYRÜtstMAC_ONLYRotWIN_ONLYt    IRIX_ONLY((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyR·sL                             cCs|jS(s@Return true iff _ExpectedSkips knows about the current platform.(Rö(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyRÀîscCs|jƒst‚|jS(snReturn set of test names we expect to skip on current platform.
 
        self.isvalid() must be true.
        (RÀR¶Rø(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyRÁòs(R‹RKRRÀRÁ(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyR¿¶s    7    t__main__tbuildstest_python_{}R(MRRORvRWRYRyR®R2RRëRXR~RSRŽRvRœt    sysconfigR©t
itervaluesRéRlRR~tabspathRtresourceRt    getrlimitt RLIMIT_STACKtsoftthardtmintmaxtnewsoftt    setrlimitR2R3R4R5R6R‰R7RR…RtTEMPDIRRRVR†RîR˜R™R¡RˆRRRRQR†RûR—R0R½R÷R¿R‹RwR¶tis_python_buildRjtmkdirRŒRÇtTESTCWDRttemp_cwdRB(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/regrtest.pyt<module>™sÐ                .                ÿ²         #‰ M    '    @    <         !    !
E %