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
Q\¬Qc@s~ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl mZddlmZejdƒZddlZejdƒddlZddlZddlZddlZddlZddlmZyddlmZeZWnek
rceZnXy ddlm Z m!Z!eZ"Wnek
reZ"nXyddl#Z#Wnek
rÇdZ#nXe%Z&ej'Z(d    Z)eZ*e*rûd‘\Z+Z,Z-nd’\Z+Z,Z-e.ed eƒ Z/ej0dkZ1yej2dƒZ3Wn dZ3nXy ddl4m5Z5m6Z6m7Z7Wn!ek
r’e8Z5dZ6Z7nXd„Z9de8fd„ƒYZ:de8fd„ƒYZ;d„Z<de;fd„ƒYZ=dej>fd„ƒYZ?de;fd„ƒYZ@d„ZAd„ZBd e;fd!„ƒYZCd"e;fd#„ƒYZDd$e;fd%„ƒYZEd&e;fd'„ƒYZFd(e;fd)„ƒYZGd*e;fd+„ƒYZHd,e;fd-„ƒYZId.e;fd/„ƒYZJd0d1„ZKd2e;fd3„ƒYZLd4„ZMd5e;fd6„ƒYZNd7e;fd8„ƒYZOd9e;fd:„ƒYZPdd;lmQZQmRZRmSZSd<e8fd=„ƒYZTd>„ZUd?eRfd@„ƒYZVdAeQfdB„ƒYZWeWjXdCdDeTƒeWjXdEdDeTdFd“ƒeWjXdIdDeUdJeVƒdKe;fdL„ƒYZYejƒZZdM„Z[dNeQfdO„ƒYZ\e\jXdPdDe[ƒdQeQfdR„ƒYZ]e]jXdPƒdSZ^dTe;fdU„ƒYZ_dVe;fdW„ƒYZ`e&dXƒZadYe;fdZ„ƒYZbd[e;fd\„ƒYZcd]e;fd^„ƒYZdd_e5fd`„ƒYZedae;fdb„ƒYZfdce;fdd„ƒYZgdee;fdf„ƒYZhdge;fdh„ƒYZidie;fdj„ƒYZjdkejkfdl„ƒYZldm„Zmdn„Zndoe8fdp„ƒYZoeneodqdrƒZpeqƒjrepƒdse8fdt„ƒYZsenesdqduƒZteqƒjretƒdve8fdw„ƒYZueneudqdxƒZveqƒjrevƒdyejkfdz„ƒYZwd{„Zxd|ejkfd}„ƒYZyd~„Zzd„Z=d€„Z{d„Z|d‚e8fdƒ„ƒYZ}d„ejkfd…„ƒYZ~d†ejkfd‡„ƒYZdˆejkfd‰„ƒYZ€dŠejkfd‹„ƒYZdŒejkfd„ƒYZ‚eweleye~ee€ee‚gZƒddŽ„Z„d„Z…e†dkrze…ƒndS(”iÿÿÿÿN(t test_support(tStringIOt_multiprocessingsmultiprocessing.synchronize(tutil(t    reduction(tValuetcopygš™™™™™¹?g=
×£p=ê?gffffffÖ?gffffffö?tHAVE_BROKEN_SEM_GETVALUEtwin32t SC_OPEN_MAXi(t    Structuretc_inttc_doublecCsgd}ytjdƒ}Wnttfk
r3dSX|dksL||krPdStjd|ƒ‚dS(sACheck that the system supports enough semaphores to run the test.itSC_SEM_NSEMS_MAXNiÿÿÿÿsHThe OS doesn't support enough semaphores to run the test (required: %d).(tostsysconftAttributeErrort
ValueErrortunittesttSkipTest(t    nsems_mintnsems((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytcheck_enough_semaphoresds    t TimingWrappercBseZd„Zd„ZRS(cCs||_d|_dS(N(tfunctNonetelapsed(tselfR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt__init__ys    cOs;tjƒ}z|j||ŽSWdtjƒ||_XdS(N(ttimeRR(Rtargstkwdstt((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt__call__}s (t__name__t
__module__RR!(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRws    t BaseTestCasecBs/eZdZd„Zd„Zd„ZeZRS(t    processestmanagertthreadscCs tr|j||dƒndS(Ni(t CHECK_TIMINGStassertAlmostEqual(Rtatb((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytassertTimingAlmostEqualŒscGs8y||Œ}Wntk
r#nX|j||ƒSdS(N(tNotImplementedErrort assertEqual(RtvalueRRtres((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytassertReturnsIfImplementeds
 cGstdƒ‚dS(Ns#shouldn't try to pickle a test case(R-(RR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
__reduce__šs(s    processessmanagerR'(R"R#t ALLOWED_TYPESR,R1R2t __reduce_ex__(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR$ˆs
        
   cCsjy|jƒSWnUtk
rey |jSWqftk
ray |jSWqbtk
r]t‚qbXqfXnXdS(N(t    get_valueRt_Semaphore__valuet_valueR-(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR5£s     t _TestProcesscBs‰eZd Zd„Zed„ƒZd„Zed„ƒZd„Zd„Z    d„Z
ed    „ƒZ d
„Z ed „ƒZ d „ZRS(R%R'cCs¥|jdkrdS|jƒ}|j}|j|jƒƒ|j|j ƒ|j|tƒ|jt|ƒdkƒ|j    |j
t j ƒƒ|j    |j dƒdS(NR'i(tTYPEtcurrent_processtauthkeyt
assertTruetis_alivetdaemontassertIsInstancetbytestlenR.tidentRtgetpidtexitcodeR(RtcurrentR;((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_current·s     cOsr|jƒ}|j|ƒ|j|ƒ|j|jƒ|jdkrn|jt|jƒƒ|j|jƒndS(NR'(R:tputtnameR9R@R;tpid(tclstqRRRE((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_testÅs   c    Cs<|jdƒ}|jƒ}|ddf}idd6dd6}d}|jd|jd    |d
|d |ƒ}t|_|jƒ}|jd kr¨|j|j    |j    ƒn|j|j
ƒt ƒ|j|jtƒ|j ||j ƒƒ|jt|j ƒƒtkƒ|j|jdƒ|jƒ|j|jdƒ|j|j
ƒtƒ|j||j ƒƒ|j|jƒ|dƒ|j|jƒ|ƒ|j|jƒ|jƒ|jd krï|j|jƒ|j    ƒ|j|jƒ|jƒn|jƒ|j|jd ƒ|j|j
ƒt ƒ|j ||j ƒƒdS(NiiithellogR¸…ëQ@tbyet SomeProcessttargetRtkwargsRHR'i(tQueuetEventtProcessRLtTrueR>R:R9R.R;R=tFalset assertNotIntactive_childrenR<ttypetlistRDRtstarttassertIntgetRHRItjoin(RRKteRRQRHtpRE((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_processÏs<          
 
cCstjdƒdS(Niè(Rtsleep(RJ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_test_terminateöscCsó|jdkrdS|jd|jƒ}t|_|jƒ|j|jƒtƒ|j||j    ƒƒ|j|j
dƒ|j ƒt |jƒ}|j|ƒdƒ|j|jdƒ|j|jƒtƒ|j||j    ƒƒ|jƒdS(NR'RPg(R9RTRcRUR>R[R.R=R\RXRDRt    terminateRR^R,RRVRW(RR`R^((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_terminateús    
 
cCsZytjƒ}Wntk
r)d}nX|jt|ƒtkƒ|j|dkƒdS(Ni(tmultiprocessingt    cpu_countR-R<RYtint(Rtcpus((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_cpu_counts  
cCs|jt|jƒƒtƒ|jdtjdtfƒ}|j||jƒƒt    |_
|j ƒ|j ||jƒƒ|j ƒ|j||jƒƒdS(NRPR(R.RYRXRZRTRRbtDELTARWRUR>R[R\R^(RR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_active_childrens    
 
cCs‰ddlm}|j|ƒt|ƒdkr…xStdƒD]B}|jd|jd|||gfƒ}|jƒ|jƒq<WndS(Niÿÿÿÿ(tforkingiRPR(    RfRmtsendRAtrangeRTt_test_recursionR[R^(RJtwconntidRmtiR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRp)s     
cCs®|jdtƒ\}}|j|gƒtjtƒg}x#|jƒr`|j|jƒƒq>Wgdgddgddgdgddgddgg}|j    ||ƒdS(Ntduplexii(
tPipeRVRpRRbRktpolltappendtrecvR.(RtrconnRqtresulttexpected((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_recursion5s             cCs#t|dƒt_tj|ƒdS(Ntw(topentsyststderrtexit(RJtreasonttestfn((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_test_sys_exitIsc    CsX|jdkrdStj}|jtj|ƒx·dddgdfd fD]š\}}|jd|jd||fƒ}t|_|j    ƒ|j
d    ƒ|j |j |ƒt |d
ƒ)}|j |jƒjƒt|ƒƒWdQXqKWxhttd fD]W}|jdtjd|fƒ}t|_|j    ƒ|j
d    ƒ|j |j |ƒqùWdS( NR'iiis ignore thisiRPRitri(s ignore thisi(R9RtTESTFNt
addCleanuptunlinkRTR„RUR>R[R^R.RDR~treadtrstriptstrRVRR(RRƒR‚tcodeR`tf((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_sys_exitNs$    (!    
 ,    
 (s    processessthreads(R"R#R3RFt classmethodRLRaRcReRjRlRpR|R„RŽ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR8³s    
   '                 t _UpperCasercBs,eZd„Zd„Zd„Zd„ZRS(cCs,tjj|ƒtjƒ\|_|_dS(N(RfRTRRut
child_connt parent_conn(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRmscCsT|jjƒx3t|jjdƒD]}|jj|jƒƒq#W|jjƒdS(N(R’tclosetiterR‘RxRRntupper(Rts((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytrunqs cCs5t|ƒtkst‚|jj|ƒ|jjƒS(N(RYR‹tAssertionErrorR’RnRx(RR–((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytsubmitwscCs.|jjdƒ|jjƒ|jjƒdS(N(R’RnRR“R‘(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytstop|s (R"R#RR—R™Rš(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRks            t_TestSubclassingProcesscBseZdZd„ZRS(R%cCsftƒ}t|_|jƒ|j|jdƒdƒ|j|jdƒdƒ|jƒ|jƒdS(NRMtHELLOtworldtWORLD(RRUR>R[R.R™RšR^(Rt
uppercaser((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_subclassing…s        
 
(s    processes(R"R#R3R (((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR›scCs-t|dƒr|jƒS|jƒdkSdS(Ntemptyi(thasattrR¡tqsize(RK((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt queue_empty’s
cCs-t|dƒr|jƒS|jƒ|kSdS(Ntfull(R¢R¥R£(RKtmaxsize((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
queue_full˜s
t
_TestQueuecBsqeZed„ƒZd„Zed„ƒZd„Zed„ƒZd„Zd„Z    ed„ƒZ
d„Z RS(    cCs9|jƒxtdƒD]}|jƒqW|jƒdS(Ni(twaitRoR]tset(RJtqueuetchild_can_starttparent_can_continueRs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    _test_put¢s
cCsµd}|jd|ƒ}|jƒ}|jƒ}|jd|jd|||fƒ}t|_|jƒ|jt|ƒtƒ|jt    ||ƒt
ƒ|j dƒ|j dtƒ|j dtdƒ|j dt
ƒ|j d    t
dƒ|j dƒtjtƒ|jt|ƒt
ƒ|jt    ||ƒtƒt|j ƒ}t|j ƒ}|jtj|d
t
ƒ|j|jd ƒ|jtj|d
t
dƒ|j|jd ƒ|jtj|d
ƒ|j|jd ƒ|jtj|d
ttƒ|j|jtƒ|jtj|d
t
tƒ|j|jd ƒ|jtj|d
td tƒ|j|jtƒ|jƒ|jƒ|jt|ƒtƒ|jt    ||ƒt
ƒ|jƒdS( NiR¦RPRiiiiiiittimeout(RRRSRTR®RUR>R[R.R¤R§RVRGRt
put_nowaitRRbRkRt assertRaisestFullR,RtTIMEOUT1tTIMEOUT2tTIMEOUT3RªR©R^(RtMAXSIZER«R¬R­tprocRGR°((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_put©sN              
 
 
cCsL|jƒ|jdƒ|jdƒ|jdƒ|jdƒ|jƒdS(Niiii(R©RGRª(RJR«R¬R­((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    _test_getãs 
    cCsP|jƒ}|jƒ}|jƒ}|jd|jd|||fƒ}t|_|jƒ|jt|ƒtƒ|j    ƒ|j
ƒt j t ƒ|jt|ƒtƒ|j|jtdƒdƒ|j|jtƒdƒ|j|jddƒdƒ|j|jƒdƒ|jt|ƒtƒt|jƒ}t|jƒ}|jtj|tƒ|j|jd    ƒ|jtj|tdƒ|j|jd    ƒ|jtj|ƒ|j|jd    ƒ|jtj|ttƒ|j|jtƒ|jtj|ttƒ|j|jd    ƒ|jtj|dtƒ|j|jtƒ|jƒdS(
NRPRiiR¯iiii(RRRSRTR¹RUR>R[R.R¤RªR©RRbRkRVR]Rt
get_nowaitRR±tEmptyR,RR³R´RµR^(RR«R¬R­R·R]Rº((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_getísB               
 
 
 cCs+x$tddƒD]}|j|ƒqWdS(Ni
i(RoRG(RJR«Rs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
_test_fork!scCsÂ|jƒ}x!tdƒD]}|j|ƒqWtjtƒ|jd|jd|fƒ}t|_    |j
ƒx*tdƒD]}|j |j ƒ|ƒq{W|j tj|j tƒ|jƒdS(Ni
RPRi(RRRoRGRRbRkRTR½RUR>R[R.R]R±R»RVR^(RR«RsR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    test_fork)s      
cCsÅ|jƒ}y|j|jƒdƒWntk
r:dSX|jdƒ|j|jƒdƒ|jdƒ|j|jƒdƒ|jƒ|j|jƒdƒ|jƒ|j|jƒdƒdS(Niiii(RRR.R£R-RGR](RRK((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_qsizeDs    
 
cCs8x1t|jdƒD]}tjtƒ|jƒqWdS(N(R”R]RRRbRkt    task_done(RJRKtobj((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_test_task_doneSs cCs|jƒ}tjd    kr;t|dƒ r;|jdƒngtdƒD]$}|jd|jd|fƒ^qH}x!|D]}t|_    |j
ƒqyWx!tdƒD]}|j |ƒq£W|j ƒx|D]}|j dƒqËWx|D]}|j ƒqéWdS(
NiiRÀs#requires 'queue.task_done()' methodiRPRi
(ii(t JoinableQueueRt version_infoR¢tskipTesttxrangeRTRÂRUR>R[RGR^R(RR«RstworkersR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_task_doneYs 4     
  ( R"R#RR®R¸R¹R¼R½R¾R¿RÂRÈ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR¨Ÿs    :
   4        t    _TestLockcBs#eZd„Zd„Zd„ZRS(cCsq|jƒ}|j|jƒtƒ|j|jtƒtƒ|j|jƒdƒ|jtt    j
f|jƒdS(N( tLockR.tacquireRURVtreleaseRR±Rt    threadingt ThreadError(Rtlock((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    test_lockws
 cCs­|jƒ}|j|jƒtƒ|j|jƒtƒ|j|jƒtƒ|j|jƒdƒ|j|jƒdƒ|j|jƒdƒ|jttf|jƒdS(N(    tRLockR.RËRURÌRR±R˜t RuntimeError(RRÏ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_rlock~s cCs|jƒWdQXdS(N(RÊ(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_lock_contextˆs (R"R#RÐRÓRÔ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRÉus        
t_TestSemaphorecBs,eZd„Zd„Zd„Zd„ZRS(cCsç|jdt|ƒ|j|jƒtƒ|jdt|ƒ|j|jƒtƒ|jdt|ƒ|j|jtƒtƒ|jdt|ƒ|j|jƒdƒ|jdt|ƒ|j|jƒdƒ|jdt|ƒdS(Niii(R1R5R.RËRURVRÌR(Rtsem((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_test_semaphorescCsr|jdƒ}|j|ƒ|j|jƒdƒ|jdt|ƒ|j|jƒdƒ|jdt|ƒdS(Niii(t    SemaphoreR×R.RÌRR1R5(RRÖ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_semaphoreœs  cCs |jdƒ}|j|ƒdS(Ni(tBoundedSemaphoreR×(RRÖ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_bounded_semaphore¤scCs|jdkrdS|jdƒ}t|jƒ}|j|tƒtƒ|j|jdƒ|j|tdƒtƒ|j|jdƒ|j|tt    ƒtƒ|j|jdƒ|j|t
t ƒtƒ|j|jt ƒ|j|dt ƒtƒ|j|jt ƒdS(NR%igR¯( R9RØRRËR.RVR,RRR³RUR´Rµ(RRÖRË((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_timeout¬s(R"R#R×RÙRÛRÜ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRՍs            t_TestConditioncBs>eZedd„ƒZd„Zd„Zd„Zd„ZRS(cCs9|jƒ|jƒ|j|ƒ|jƒ|jƒdS(N(RËRÌR©(RJtcondtsleepingtwokenR¯((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRÅs
 
 
 
cCss|jdkroyI|jjƒ|jjƒ}|j|dƒ|j|jjƒdƒWqotk
rkqoXndS(NR%i(R9t_sleeping_countR5t _woken_countR.t_wait_semaphoreR-(RRÞtsleepers((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytcheck_invariantÍs  cCsc|jƒ}|jdƒ}|jdƒ}|jd|jd|||fƒ}t|_|jƒtjd|jd|||fƒ}t|_|jƒ|j    ƒ|j    ƒt
j t ƒ|j dt|ƒ|j    ƒ|jƒ|jƒt
j t ƒ|j dt|ƒ|j    ƒ|jƒ|jƒt
j t ƒ|j dt|ƒ|j|ƒ|jƒdS(NiRPRii(t    ConditionRØRTRRUR>R[RÍtThreadRËRRbRkR1R5tnotifyRÌRåR^(RRÞRßRàR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_notifyØs2 $    
$    
 
 
 
 
 
 
 
 
  c    Cs,|jƒ}|jdƒ}|jdƒ}xˆtdƒD]z}|jd|jd|||tfƒ}t|_|jƒt    j
d|jd|||tfƒ}t|_|jƒq7Wxt dƒD]}|j ƒqÂWxt dƒD]}|j ƒqãW|j dt|ƒ|j|ƒx‚tdƒD]t}|jd|jd|||fƒ}t|_|jƒt    j
d|jd|||fƒ}t|_|jƒq$Wxt dƒD]}|j ƒq©Wtjtƒ|j dt|ƒ|j ƒ|jƒ|jƒtjtƒ|j dt|ƒ|j|ƒdS(NiiRPRi(RæRØRoRTRR³RUR>R[RÍRçRÆRËR1R5RåRRbRkt
notify_allRÌ(RRÞRßRàRsR`R ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_notify_allsF     
     $    
$     
 
 
 cCsb|jƒ}t|jƒ}|jƒ|tƒ}|jƒ|j|dƒ|j|j    tƒdS(N(
RæRR©RËR³RÌR.RR,R(RRÞR©R0((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRÜ>s 
 
N(    R"R#RRRRåRéRëRÜ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRÝÃs         +    ;t
_TestEventcBs eZed„ƒZd„ZRS(cCstjtƒ|jƒdS(N(RRbR´Rª(RJtevent((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt _test_eventJs cCsD|jƒ}t|jƒ}|j|jƒtƒ|j|dƒtƒ|j|jdƒ|j|tƒtƒ|j|jtƒ|j    ƒ|j|jƒt
ƒ|j|ƒt
ƒ|j|jdƒ|j|tƒt
ƒ|j|jdƒ|j ƒ|j d|j d|fƒ}t
|_|jƒ|j|ƒt
ƒdS(NgRPR(RSRR©R.tis_setRVR,RR³RªRUtclearRTRîR>R[(RRíR©R`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_eventOs$ 
 
    
(R"R#RRîRñ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRìHst
_TestValuecBskeZdZdddd
ed ƒed ƒfgZd „Zed„ƒZed„Z    d„Z
d„Z RS(R%Rsi÷iª^tdg @gÀthiÿÿÿiêtctxtycCsts|jdƒndS(Ns%requires multiprocessing.sharedctypes(tHAS_SHAREDCTYPESRÅ(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytsetUp€scCs4x-t||jƒD]\}}|d|_qWdS(Ni(tzipt codes_valuesR/(RJtvaluestsvtcv((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRL„sc    Cs|r:g|jD]!\}}}|j||ƒ^q}n1g|jD]!\}}}|j||ƒ^qD}x7t||jƒD]#\}}|j|j|dƒq~W|jd|jd|fƒ}t|_    |j
ƒ|j ƒx7t||jƒD]#\}}|j|j|dƒqóWdS(NiRPRi( RûtRawValueRRúR.R/RTRLRUR>R[R^(    RtrawRŒR/t_RüRýRþR·((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_valueŠs1.    
 
cCs|jdtƒdS(NR(RRU(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_rawvaluesc CsK|jddƒ}|jƒ}|jƒ}|jddddƒ}|jƒ}|jƒ}|jƒ}|jddd|ƒ}|jƒ}    |jƒ}
|j||    ƒ|jdddtƒ} |jt| dƒƒ|jt| dƒƒ|j    t
|jddddƒ|j ddƒ} |jt| dƒƒ|jt| dƒƒdS(NRsiRÏtget_locktget_objtnavalue( RRRRRÊR.RVt assertFalseR¢R±RRÿ( Rtval1tlock1tobj1tval2tlock2tobj2RÏtval3tlock3tobj3tarr4tarr5((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_getobj_getlock s$       (s    processes(Rsi÷iª^(Róg @gÀ(Rôiÿÿÿiê( R"R#R3tlatinRûRùRRLRVRRR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRòus         t
_TestArraycBsÅeZdZed„ƒZejed    kdƒe    d„ƒZ
ejed    kdƒd„ƒZ ejed    kdƒd„ƒZ ejed    kdƒd„ƒZ ejed    kdƒd„ƒZRS(
R%cCs<x5tdt|ƒƒD]}||c||d7<qWdS(Ni(RoRA(RJtseqRs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR¾ssrequires _ctypesc
CsYddddddddd    d
g
}|r?|jd |ƒ}n|jd |ƒ}|jt|ƒt|ƒƒ|j|d |d ƒ|jt|d d!ƒt|d d!ƒƒtjd dd d dgƒ|dd+|dd+|jt|ƒ|ƒ|j|ƒ|jd|jd|fƒ}t|_    |j
ƒ|j ƒ|jt|ƒ|ƒdS(Ni¨iri¦i5i–iéi$iÖiÊi?RsiiiiiiRPR( tRawArraytArrayR.RARZtarrayRRTRUR>R[R^(RRRtarrR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_arrayÃs$*0     
 
cCs’d}x…tdƒD]w}|jd|ƒ}|jt|ƒ|ƒ|jt|ƒdg|ƒtdƒ|(|jt|ƒtdƒƒ~qWdS(Ni
iRsi(RoRR.RARZ(RtsizeRR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_array_from_sizeÜs cCs|jdtƒdS(NR(RRU(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_rawarrayëscCsT|jddƒ}|jt|ƒdƒ|jddƒ}|jt|ƒdƒdS(NRsl
i
(RR.RAR(RRtraw_arr((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_array_accepts_longïsc Cso|jdtdƒƒ}|jƒ}|jƒ}|jdtdƒddƒ}|jƒ}|jƒ}|jƒ}|jdtdƒd|ƒ}|jƒ}    |jƒ}
|j||    ƒ|jdtdƒdtƒ} |jt    | dƒƒ|jt    | dƒƒ|j
t |jdtdƒddƒ|j dtdƒƒ} |jt    | dƒƒ|jt    | dƒƒdS(NRsi
RÏRRtnotalock( RRoRRRRÊR.RVRR¢R±RR( Rtarr1R    R
tarr2R R RÏtarr3RRRR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_getobj_getlock_objös&           (s    processesN(R"R#R3RRRtskipIfR RRVRRRR R%(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRºs!!!t_TestContainerscBs)eZdZd„Zd„Zd„ZRS(R&cCsû|jtdƒƒ}|j|tdƒƒ|jƒ}|j|gƒ|jtdƒƒ|j|tdƒƒ|j|ddƒ|j|dd!dddgƒ|d9}|j|ddddddddddg
ƒ|j|ddgddddddddddddg ƒ|j|tdƒƒ||g}|j|ƒ}|j|dddddddd    d
d g
ddddddddddg
gƒ|j|gƒ}|jd ƒ|j|dddddddd    d
d d g gƒdS( Ni
iiiiiiiiii    RM(RZRoR.textendRw(RR*R+RóR_R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    test_lists(  
/> I cCsò|jƒ}tddƒ}x|D]}t|ƒ||<q"W|j|jƒtd„|Dƒƒƒ|jt|jƒƒ|ƒ|jt|jƒƒg|D]}t|ƒ^qšƒ|jt|jƒƒg|D]}|t|ƒf^qσdS(NiAiFcss!|]}|t|ƒfVqdS(N(tchr(t.0Rs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pys    <genexpr><s(    tdictRoR*R.RtsortedtkeysRütitems(RRótindicesRs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    test_dict7s  &5cCs|jƒ}d|_d|_d|_|j|j|jfdƒ|`|jt|ƒdƒ|jt|dƒƒ|jt|dƒ ƒdS(NtBobtBuilderthiddensNamespace(name='Bob')RHtjob(R2R3(t    NamespaceRHR5t_hiddenR.R‹R<R¢(Rtn((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_namespaceAs             (smanager(R"R#R3R)R1R9(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR's        
gcCstj|ƒ||S(N(RRb(RöR©((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytsqrPs t    _TestPoolcBsbeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z RS(
cCs[|jj}|j|tdƒtdƒƒ|j|tdidd6ƒtddƒƒdS(NiiRö(i((tpooltapplyR.R:(Rtpapply((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_applyUs cCsr|jj}|j|ttdƒƒtttdƒƒƒ|j|ttdƒddƒtttdƒƒƒdS(Ni
idt    chunksizei(R<tmapR.R:Ro(Rtpmap((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_mapZs .cCsQy)|jjtgddƒjdtƒWn!tjk
rL|jdƒnXdS(NR@iR¯s2pool.map_async with chunksize stalled on null list(R<t    map_asyncR:R]R³Rft TimeoutErrortfail(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_map_chunksize`s)cCsT|jjtdtfƒ}t|jƒ}|j|ƒdƒ|j|jtƒdS(Nii1(    R<t apply_asyncR:R³RR]R.R,R(RR0R]((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_asyncfscCs^|jjtdtdfƒ}t|jƒ}|jtj|dtƒ|j    |j
tƒdS(Nigš™™™™™É?R¯( R<RHR:R´RR]R±RfRER,R(RR0R]((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_async_timeoutlscCs|jjttdƒƒ}|jt|ƒtttdƒƒƒ|jjttdƒƒ}x.tdƒD] }|j|jƒ||ƒqhW|jt    |jƒ|jjttdƒddƒ}x.tdƒD] }|j|jƒ||ƒqÍW|jt    |jƒdS(Ni
ièR@id(
R<timapR:RoR.RZRAtnextR±t StopIteration(RtitRs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    test_imaprs%!cCsŠ|jjttdƒƒ}|jt|ƒtttdƒƒƒ|jjttdƒddƒ}|jt|ƒtttdƒƒƒdS(NièR@i5(R<timap_unorderedR:RoR.R-RA(RRN((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_imap_unordered€s%!cCsl|jttjdƒ|jttjdƒtjdƒ}|jdt|jƒƒ|jƒ|jƒdS(Niÿÿÿÿii(    R±RRftPoolR.RAt_poolR“R^(RR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_make_pool‡s 
cCsŠ|jdkrdS|jjtjgtdƒD] }d^q/ddƒ}|jjƒt|jjƒ}|ƒ|j    |j
dkƒdS(NR&i'gš™™™™™¹?R@igš™™™™™É?( R9R<RDRRbRoRdRR^R<R(RRsRzR^((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRes    . cCs©|jdƒ}|j|jtgƒgƒ|jt|jtgƒƒgƒ|jt|jtgƒƒgƒ|j|jtgƒjƒgƒ|j    ƒ|j
ƒdS(Ni( RRR.RAR:RZRKRPRDR]R“R^(RR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_empty_iterable¢s"""
( R"R#R?RCRGRIRJRORQRTReRU(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR;Ss                                        cCsd„S(NcSsdS(Ni*((((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt<lambda>¯s((((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytunpickleable_result®st_TestPoolWorkerErrorscBseZdZd„ZRS(R%cCspddlm}tjdƒ}x6tdƒD](}|jtƒ}|j||jƒq,W|j    ƒ|j
ƒdS(Niÿÿÿÿ(tMaybeEncodingErrorii( tmultiprocessing.poolRYRfRRRoRHRWR±R]R“R^(RRYR`t    iterationR0((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_unpickleable_result´s
(s    processes(R"R#R3R\(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRX±st_TestPoolWorkerLifetimecBs eZdZd„Zd„ZRS(R%c
Cs€tjdddƒ}|jdt|jƒƒg|jD]}|j^q8}g}x0tdƒD]"}|j|jt    |fƒƒq`Wx6t
|ƒD](\}}|j|j ƒt    |ƒƒq“W|j ƒd}x;|r t d„|jDƒƒ r |d8}tjtƒqÒWg|jD]}|j^q}    |jd|ƒ|jd|    ƒ|jt|ƒt|    ƒƒ|jƒ|jƒdS(Nitmaxtasksperchildi
idi2css|]}|jƒVqdS(N(R=(R+R}((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pys    <genexpr>Ôsi(RfRRR.RARSRIRoRwRHR:t    enumerateR]t_repopulate_pooltallRRbRkRWRtassertNotEqualR-R“R^(
RR`R}torigworkerpidstresultsRstjR0t    countdowntfinalworkerpids((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_pool_worker_lifetimeÃs&  
#
 
cCs¢tjdddƒ}g}x3tdƒD]%}|j|jt|dfƒƒq(W|jƒ|jƒx6t|ƒD](\}}|j    |j
ƒt|ƒƒqrWdS(NiR^iig333333Ó?( RfRRRoRwRHR:R“R^R_R.R](RR`RdRsReR0((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt%test_pool_worker_lifetime_early_closeàs#
 
(s    processes(R"R#R3RhRi(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR]Às    t_TestZZZNumberOfObjectscBseZdZd„ZRS(R&cCsnd}tjƒtjƒ|jjƒ}|jjƒ}||krZ|jjƒGH|GHn|j||ƒdS(Ni(RfRXtgctcollectR&t_number_of_objectst _debug_infoR.(RtEXPECTED_NUMBERtrefst
debug_info((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_number_of_objectsùs
 
 (smanager(R"R#R3Rr(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRjòs(t BaseManagert    BaseProxyt RemoteErrortFooBarcBs#eZd„Zd„Zd„ZRS(cCsdS(Nsf()((R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR scCs
t‚dS(N(R(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytgscCsdS(Ns_h()((R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_hs(R"R#RRwRx(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRv s        ccs$xtdƒD]}||Vq WdS(Ni
(RÆ(Rs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytbazst IteratorProxycBs)eZdZd„Zd„Zd„ZRS(RLt__next__cCs|S(N((R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt__iter__scCs |jdƒS(NRL(t _callmethod(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRLscCs |jdƒS(NR{(R}(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR{s(snexts__next__(R"R#t    _exposed_R|RLR{(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRzs        t    MyManagercBseZRS((R"R#(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR stFootcallabletBartexposedRRxRyt    proxytypet_TestMyManagercBseZdZd„ZRS(R&c    Csªtƒ}|jƒ|jƒ}|jƒ}|jƒ}gdD]}t||ƒr>|^q>}gdD]}t||ƒrf|^qf}|j|ddgƒ|j|ddgƒ|j|jƒdƒ|jt    |j
ƒ|j|j dƒdƒ|jt |j dƒ|j|jƒdƒ|j|j ƒdƒ|j|j dƒdƒ|j|j dƒdƒ|jt|ƒgtdƒD]}||^q…ƒ|jƒdS(    NRRwRxsf()s_h()i
(RRws_h(RRws_h(RR[R€R‚RyR¢R.RR±RRwR}RuRxRZRotshutdown(    RR&tfootbarRyRHt foo_methodst bar_methodsRs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_mymanager,s&    
   ((3(smanager(R"R#R3R‹(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR…(scCstS(N(t_queue(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    get_queueMst QueueManagercBseZdZRS(s$manager class used by server process(R"R#t__doc__(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRŽPsRt QueueManager2cBseZdZRS(s@manager class which specifies the same interface as QueueManager(R"R#R(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRTst    xmlrpclibt_TestRemoteManagercBs&eZdZed„ƒZd„ZRS(R&cCsNtd|d|dtƒ}|jƒ|jƒ}|jddtdfƒdS(NtaddressR;t
serializers hello worldg@(Rt
SERIALIZERtconnectRRGRRU(RJR“R;R&R«((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_putter_s
 
 cCsëtjdƒ}tdd d|dtƒ}|jƒ|jd|jd|j|fƒ}t|_    |jƒt
d|jd|dtƒ}|j ƒ|j ƒ}|j |jƒd    dtd
gƒ|jt|jtjƒ~|jƒdS( Ni R“t    localhostiR;R”RPRs hello worldg@(R˜i(RturandomRŽR•R[RTR—R“RUR>RR–RR.R]RR±t    ExceptionRGRRbR†(RR;R&R`tmanager2R«((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_remotehs
$    
 
 "(smanager(R"R#R3RR—Rœ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR’[s    t_TestManagerRestartcBs eZed„ƒZd„ZRS(cCsBtd|d|dtƒ}|jƒ|jƒ}|jdƒdS(NR“R;R”s hello world(RŽR•R–RRG(RJR“R;R&R«((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR—‡s
 
 cCsïtjdƒ}tdd
d|dtƒ}|jƒ}|j}|jjƒ|jƒ|j    d|j
d|j|fƒ}t |_ |jƒ|j ƒ}|j|jƒd    ƒ~|jƒtd|d|dtƒ}|jƒ|jƒdS( Ni R“R˜iR;R”RPRs hello world(s    localhosti(RR™RŽR•t
get_serverR“tlistenerR“R[RTR—RUR>RR.R]R†(RR;R&tsrvrtaddrR`R«((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_rapid_restarts$      
$    
 
 
(R"R#RR—R¢(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR…stt_TestConnectioncBs+eZdZed„ƒZd„Zd„Zd„Zd„Zed„ƒZ    ee
d„ƒZ e j ed    ƒd
„ƒZe j ed    ƒe jejd kd ƒe jed kdƒe j eedƒdƒd„ƒƒƒƒZed„ƒZe j ed    ƒe jejd kdƒd„ƒƒZRS(R%R'cCs8x't|jtƒD]}|j|ƒqW|jƒdS(N(R”t
recv_bytestSENTINELt
send_bytesR“(RJtconntmsg((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_echo°scCs@|jƒ\}}|jd|jd|fƒ}t|_|jƒdddg}tdƒ}|d}tjdt    dƒƒ}|j
d    kr®|j t |j ƒƒtƒn|j |j|ƒdƒ|j |jƒ|ƒ|j |j|ƒdƒ|j |jƒ|ƒ|j
d    krÓtjdd
gdƒ}t|ƒd
gdt|ƒ}    |j |j|ƒdƒ|j |j|ƒt|ƒ|jƒ|j t|ƒ|    ƒtjdd
gdƒ}d
gd t|ƒd
gdt|ƒ}    |j |j|ƒdƒ|j |j|d |jƒt|ƒ|jƒ|j t|ƒ|    ƒttd d ƒƒ}|j |j|ƒdƒy|j|ƒ}
Wn,tjk
r¾} |j | j|fƒqÓX|jd|
ƒnt|jƒ} |j | ƒtƒ|j| j d
ƒ|j | t!ƒtƒ|j| j t!ƒ|jdƒt"j#dƒ|j | t!ƒtƒ|j| j d
ƒ|j |jƒdƒtdƒd} |j| ƒ|j |jƒ| ƒ|jt$ƒ|j%ƒ|j
d    kr2|j |j&tƒ|j |j'tƒ|j(t)|jƒ|j(t)|jƒn|j*ƒdS(NRPRig@s hello worldi
RsiR%iit i(sexpected BufferTooShort, got %sgš™™™™™¹?tXiiiii(+RuRTRªRUR>R[RRRRoR9R.RYtfilenoRhRnRxR§R¥RZRAtrecv_bytes_intotitemsizet    bytearrayRftBufferTooShortRRFRRvRVR,RR³RRbR¦R“treadabletwritableR±tEOFErrorR^(RR¨R‘R`RR©tlongmsgRtbufferR{R0R_Rvtreally_big_msg((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_connection¶sn    
 
!,    
cCså|jdtƒ\}}|j|jdƒdƒ|j|jƒdƒ|jdkrá|j|jtƒ|j|j    tƒ|j|jtƒ|j|j    tƒ|j
t |jdƒ|j
t |jƒ|j
t |j ƒndS(NRtiR%i( RuRVR.RnRRxR9R²RUR³R±tIOErrorRv(Rtreadertwriter((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_duplex_falsescCs¡|jƒ\}}|jd|jd|fƒ}t|_|jƒ|jƒtdƒ}|j|ƒ|j    |j
ƒ|ƒ|jt ƒ|jƒ|j ƒdS(NRPRRM( RuRTRªRUR>R[R“RR§R.R¥R¦R^(RR¨R‘R`R©((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_spawn_closes    
 
 
cCs“|jdkrdStdƒ}|jƒ\}}|j|ƒ|j|jƒ|ƒ|j|dƒ|j|jƒ|dƒ|j|ddƒ|j|jƒ|dd!ƒ|j|dƒ|j|jƒtdƒƒ|j|ddƒ|j|jƒtdƒƒ|jt|j|d    ƒ|jt|j|d
dƒ|jt|j|dd ƒ|jt|j|d ƒ|jt|j|d d ƒdS(NR%tabcdefghijklmnopqrstuvwxyziiiiR£iiiiiÿÿÿÿii(R9RRuR§R.R¥R±R(RR©R*R+((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_sendbytes$s&  cCsHytj|ƒWn,tk
r?}|jtjkr9tS‚nXtSdS(N(RtfstattOSErrorterrnotEBADFRVRU(RJtfdR_((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_is_fd_assignedDscCs™|rKxBtddƒD].}|j|ƒstj|jƒ|ƒqqWntj|ƒ}trxtj|tj    ƒ}ntj
||ƒtj |ƒdS(Nii( RoRÅRtdup2R­Rt recv_handletmsvcrttopen_osfhandletO_WRONLYtwriteR“(RJR¨tdatatcreate_dummy_fdsRsRÄ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_writefdOs s$test needs multiprocessing.reductioncCsÿ|jdkr|jdƒn|jdtƒ\}}|jd|jd|dfƒ}t|_|jƒtt    j
dƒA}|j ƒ}t r¤t j |ƒ}ntj|||jƒWdQX|jƒtt    j
dƒ}|j|jƒdƒWdQXdS(    NR%sonly makes sense with processesRtRPRR‡twbtrb(R9RÅRuRURTRÎR>R[R~RR†R­RÈt get_osfhandleRt send_handleRIR^R.R‰(RR¨R‘R`RRÄ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_fd_transfer[s!    
 
Rs*test semantics don't make sense on Windowsis)largest assignable fd number is too smallRÆstest needs os.dup2()c    CsI|jdkr|jdƒn|jdtƒ\}}|jd|jd|dtfƒ}t|_|jƒtt    j
dƒˆ}|j ƒ}x7t dt ƒD]}|j|ƒsŸPqŸqŸW|jd    ƒtj||ƒztj|||jƒWdtj|ƒXWdQX|jƒtt    j
d
ƒ}|j|jƒdƒWdQXdS( NR%sonly makes sense with processesRtRPRRˆRÏis2could not find an unassigned large file descriptorRÐ(R9RÅRuRURTRÎR>R[R~RR†R­RotMAXFDRÅRFRRÆRRÒRIR“R^R.R‰(RR¨R‘R`RRÄtnewfd((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_large_fd_transferms&    $    
 
cCstj|jƒdƒdS(Nt(RRËR­(RR¨((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_send_data_without_fdssdoesn't make sense on WindowscCsŒ|jdkr|jdƒn|jdtƒ\}}|jd|jd|fƒ}t|_|jƒ|jt    t
j |ƒ|j ƒdS(NR%sonly makes sense with processesRtRPR( R9RÅRuRURTRØR>R[R±RÒRRÇR^(RR¨R‘R`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_missing_fd_transfer‘s    
(s    processessthreads(R"R#R3RRªR¸R¼R½R¿RÅRVRÎRt
skipUnlesst HAS_REDUCTIONRÓR&RtplatformRÔR¢RRÖRØRÙ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR¤¬s(    L               t_TestListenerClientcBs/eZdZed„ƒZd„Zd„ZRS(R%R'cCs-|jj|ƒ}|jdƒ|jƒdS(NRM(t
connectiontClientRnR“(RJR“R¨((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRL¤s cCsšx“|jjD]…}|jjd|ƒ}|jd|jd|jfƒ}t|_|jƒ|j    ƒ}|j
|j ƒdƒ|j ƒ|j ƒq WdS(NtfamilyRPRRM(RÞtfamiliestListenerRTRLR“RUR>R[tacceptR.RxR^R“(RRàtlR`R¨((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_listener_clientªs!    
 
cCs”|jjƒ}|jd|jd|jfƒ}t|_|jƒtj    dƒ|j
ƒ}|j |j ƒdƒ|j ƒ|jƒ|j ƒdS(NRPRiRM(RÞRâRTRLR“RUR>R[RRbRãR.RxR“R^(RRäR`R¨((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_issue14725µs!    
 
 
(s    processessthreads(R"R#R3RRLRåRæ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRÝ s     t    _TestHeapcBs eZdZd„Zd„ZRS(R%cCs d}d}g}xzt|ƒD]l}ttjddƒdƒ}tjj|ƒ}|j|ƒt|ƒ|krtj    |ƒ}||=qqWtjjj
}g}d}    |j j ƒ|j |j jƒx]|jjƒD]L}
xC|
D];\} } } |j|jj| ƒ| | | | dfƒqçWqÚWxT|jD]I\} } } |j|jj| ƒ| | | | dfƒ|    | | 7}    q4W|jƒx{tt|ƒdƒD]c}||d \} } } ||dd \}}}|j| |krø|dkp| |kƒq¢WdS(    Niˆi2iiiètfreetoccupiedi(RÆRhtrandomtlognormvariateRftheapt BufferWrapperRwRAt    randranget_heapt_lockRËR‡RÌt _len_to_seqRüt_arenastindext_allocated_blockstsortRoR<(Rt
iterationst    maxblockstblocksRsRR+RìRaRétLtarenaR[Rštnarenatnstarttnstop((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    test_heap%s:  
cCs¦tjƒs)tjƒ|jtjƒntjƒ}|jtj|ŒtjdƒxJtdƒD]<}tj    j
dƒ}tj    j
dƒ}||_ ||_ qbWdS(Ni
iˆi( Rkt    isenabledtenableR‡tdisablet get_thresholdt set_thresholdRoRfRìRítbuddy(Rt
thresholdsRsR*R+((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_free_from_gcLs 
      (s    processes(R"R#R3RþR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRç!s    't_FoocBs eZdefdefgZRS(RöR÷(R"R#R R t_fields_(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRfs    t_TestSharedCTypescBsDeZdZd„Zed„ƒZed„Zd„Zd„Z    RS(R%cCsts|jdƒndS(Ns%requires multiprocessing.sharedctypes(RøRÅ(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRùpscCs||jd9_|jd9_|jd9_|jd9_|jd9_x*tt|ƒƒD]}||cd9<q^WdS(Ni(R/RöR÷RoRA(RJRöR÷R‡RtstringRs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_doubletsc        Csntddd|ƒ}ttddd|ƒ}ttddd|ƒ}|jdtd    ƒd|ƒ}|jd
d d|ƒ}td ƒ|_|jd |jd|||||fƒ}t    |_
|j ƒ|j ƒ|j |jdƒ|j|jddƒ|j |jdƒ|j|jdƒx,td    ƒD]}|j|||dƒq/W|j |jtdƒƒdS(NRsiRÏgð?g@iiRói
RõiRMRPRig@ig@t
hellohello(RR RRRoRR/RTR RUR>R[R^R.R)RöR÷(    RRÏRöR÷R‡RR
R`Rs((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_sharedctypes~s"*    
 
cCs|jdtƒdS(NRÏ(R RU(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_synchronize“scCsWtddƒ}t|ƒ}d|_d|_|j|jdƒ|j|jdƒdS(Nig@i(RRRöR÷R.R)(RR‡Rˆ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    test_copy–s          (s    processes(
R"R#R3RùRR RVR RR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR    ls     
    t _TestFinalizecBs&eZdZed„ƒZd„ZRS(R%c Cs•dtfd„ƒY}|ƒ}tj||jddƒ~|ƒ}tj||jddƒ}|ƒ|ƒ~|ƒ}tj||jddƒ|ƒ}tj||jdddd    ƒ|ƒ}tj||jdddd ƒ|ƒ}    tj|    |jdddd ƒ|ƒ}
tj|
|jdddd ƒtjd|jddddƒtjd|jddddƒtjƒ|jƒtjd ƒdS(NR€cBseZRS((R"R#(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR€¨sRR*R+Rõtd10t exitpriorityitd01itd02td03R_iöÿÿÿtSTOPiœÿÿÿ(R*(R+(Rõ(sd10(sd01(sd02(sd03(R_(R(    tobjectRtFinalizeRnRt_exit_functionR“Rt_exit( RJR¨R€R*R+tclose_bRõRRRR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_test_finalize¦s0                            
 
c    Cs›|jƒ\}}|jd|jd|fƒ}t|_|jƒ|jƒgt|jdƒD] }|^q`}|j    |dddddd    d
gƒdS( NRPRRR*R+RRRRR_(
RuRTRRUR>R[R^R”RxR.(RR¨R‘R`RÁRz((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_finalizeÌs    
 
%(s    processes(R"R#R3RRR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR¢s&t_TestImportStarcBseZdZd„ZRS(R%cCs¼ddddddddg}tr4|jd    ƒntdk    rP|jd
ƒnxe|D]]}t|ƒtj|}x=t|d d ƒD])}|jt    ||ƒd ||fƒq‡WqWWdS(NRfsmultiprocessing.connectionsmultiprocessing.heapsmultiprocessing.managerssmultiprocessing.poolsmultiprocessing.processsmultiprocessing.synchronizesmultiprocessing.utilsmultiprocessing.reductionsmultiprocessing.sharedctypest__all__s%r does not have attribute %r((
RÛRwR Rt
__import__RtmodulestgetattrR<R¢(RR!RHtmodtattr((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_importßs   
  (s    processes(R"R#R3R%(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRÛst _TestLoggingcBs/eZdZd„Zed„ƒZd„ZRS(R%cCsZtjƒ}|jtjƒ|j|dk    ƒ|jdƒ|jdƒ|jt    ƒdS(Nsthis will not be printeds nor will this(
Rft
get_loggertsetLevelRt
SUBWARNINGR<Rtdebugtinfot    LOG_LEVEL(Rtlogger((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_enable_loggings    cCs#tjƒ}|j|jƒƒdS(N(RfR'RntgetEffectiveLevel(RJR¨R-((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt _test_levels c    Csd}d}tjƒ}tjƒ}|j}tjdtƒ\}}|j|ƒ|jd|j    d|fƒ}t
|_ |j ƒ|j ||jƒƒ|jtjƒ|j|ƒ|jd|j    d|fƒ}t
|_ |j ƒ|j ||jƒƒ|j|ƒ|jdtƒdS(Ni i%RtRPRtlevel(RfR'tloggingt    getLoggerR1RuRVR(RTR0RUR>R[R.RxtNOTSETR,(    RtLEVEL1tLEVEL2R-t root_loggert
root_levelRºR»R`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_level s&           
     
 (s    processes(R"R#R3R.RR0R9(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR&üs    t_TestPollEintrcBsAeZdZed„ƒZejeedƒdƒd„ƒZ    RS(R%cCs$tjdƒtj|tjƒdS(Ngà?(RRbRtkilltsignaltSIGUSR1(RJRI((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_killerCs R=srequires SIGUSR1csÝtg‰‡fd†}tjƒ}tjtj|ƒ}z‰|jd|jd|fƒ}|jƒ|jdtj    ddƒ}|jƒ|j
ƒ|j ˆdƒ|j |j dƒ|j
ƒWdtjtj|ƒXdS(Ncstˆd<dS(Ni(RU(R(t
got_signal(sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytrecordKsRPRii(i(RVRRCR<R=RTR>R[RRbR^R<R.RD(RR@RIt
oldhandlertkillerR`((R?sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_poll_eintrHs     
 
 
(s    processes(
R"R#R3RR>RRÚR¢R<RC(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR:?stTestInvalidHandlecBs#eZejedƒd„ƒZRS(sskipped on WindowscCs<tjdƒ}|jt|jƒ|jttjdƒdS(NiÈM®iÿÿÿÿ(Rt
ConnectionR±R¹Rv(RR¨((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_invalid_handlesas(R"R#RR&tWIN32RF(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRD_scCs[i}xN|D]F}t||ƒ}t|ƒttƒkrIt|ƒ}n|||<q W|S(N(R"RYtget_attributest staticmethod(tSourcetnamesRóRHRÁ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRHks c    Cs´i}tƒ}|jƒ}x’|jƒD]„}|jdƒr(||}||jkr¬d||d}d|tj|fd„ƒY}|||<||_|j|_q¬q(q(W|S(Nt_TesttWithitTempcBseZRS((R"R#(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRN~s(    tglobalst
capitalizeR.t
startswithR3RtTestCaseR"R#(    tMixinRYRztglobtTypeRHtbasetnewnameRN((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytcreate_test_casests     
 
    tProcessesMixincBs0eZdZejZeƒjeedƒƒRS(R%RRRÊRÑRØRÚRæRSRRRÿRR:RXRuRÞRÃRR(sQueuesLocksRLocks    SemaphoresBoundedSemaphores    ConditionsEventsValuesArraysRawValuesRawArrayscurrent_processsactive_childrensPipes
connections JoinableQueuesPool(R"R#R9RfRTtlocalstupdateRH(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRY‰s    RYR%t ManagerMixincBsEeZdZejZejejjƒZ    e
ƒj e e    dƒƒRS(R&RRRÊRÑRØRÚRæRSRRRZR,R6RÃRR(sQueuesLocksRLocks    SemaphoresBoundedSemaphores    ConditionsEventsValuesArrayslistsdicts    Namespaces JoinableQueuesPool( R"R#R9RfRTRt__new__tmanagerst SyncManagerR&RZR[RH(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR\—s    R&t ThreadsMixincBs6eZdZejjZeƒjeejdƒƒRS(R'RRRÊRÑRØRÚRæRSRRR:RXRuRÞR,RZR6RÃRR(sQueuesLocksRLocks    SemaphoresBoundedSemaphores    ConditionsEventsValuesArrayscurrent_processsactive_childrensPipes
connectionsdictslists    Namespaces JoinableQueuesPool(    R"R#R9RftdummyRTRZR[RH(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR`¥s R't    OtherTestcBseZd„Zd„ZRS(cCs<dtfd„ƒY}|jtjtjj|ƒdƒdS(Nt_FakeConnectioncBseZd„Zd„ZRS(cSsdS(Nssomething bogus((RR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR¥¶scSsdS(N((RRÌ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR§¸s(R"R#R¥R§(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRcµs    tabc(RR±RftAuthenticationErrorRÞtdeliver_challenge(RRc((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt#test_deliver_challenge_auth_failure´s     cCs<dtfd„ƒY}|jtjtjj|ƒdƒdS(NRccBs#eZd„Zd„Zd„ZRS(cSs d|_dS(Ni(tcount(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRÀscSs?|jd7_|jdkr(tjjS|jdkr;dSdS(Niissomething bogusR£(RhRfRÞt    CHALLENGE(RR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR¥Âs 
cSsdS(N((RRÌ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR§És(R"R#RR¥R§(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRc¿s        Rd(RR±RfReRÞtanswer_challenge(RRc((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt"test_answer_challenge_auth_failure¾s     (R"R#RgRk(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRb²s    
cCs|jd7_dS(Ni(ttest(tns((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt initializerÓstTestInitializerscBs,eZd„Zd„Zd„Zd„ZRS(cCs1tjƒ|_|jjƒ|_d|j_dS(Ni(RftManagertmgrR6RmRl(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRù×scCs|jjƒdS(N(RqR†(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttearDownÜscCs_tjjƒ}|jt|jdƒ|jt|jfƒ|j|jj    dƒ|j
ƒdS(Ni( RfR^R_R±t    TypeErrorR[RnRmR.RlR†(Rtm((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_manager_initializerßs
cCsb|jttjddƒtjdt|jfƒ}|jƒ|jƒ|j|jj    dƒdS(NRni(
R±RsRfRRRnRmR“R^R.Rl(RR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_pool_initializeræs
 
 
(R"R#RùRrRuRv(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRoÖs            cCs1y|jdtƒ}Wntjk
r,nXdS(Ntblock(R]RVRRR»(RKtitem((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_ThisSubProcessòscCsHtjƒ}tjdtd|fƒ}t|_|jƒ|jƒdS(NRPR(RfRRRTRyRUR>R[R^(RKR«tsubProc((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR8øs
     
cCs||S(N((Rö((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt_afuncÿsc    Cs=tjddƒ}|jtdddddddgƒ}dS(    NR%iiiiiii(RfRRRAR{(R<Rö((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytpool_in_process    st
_file_likecBs2eZd„Zed„ƒZd„Zd„ZRS(cCs||_d|_dS(N(t    _delegateRt_pid(Rtdelegate((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR    s    cCs7tjƒ}||jkr0||_g|_n|jS(N(RRCRt_cache(RRI((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytcache    s
      cCs|jj|ƒdS(N(R‚Rw(RRÌ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRË    scCs)|jjdj|jƒƒg|_dS(NR£(R~RËR^R‚R(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytflush    s(R"R#RtpropertyR‚RËRƒ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR}    s            tTestStdinBadfiledescriptorcBs#eZd„Zd„Zd„ZRS(cCs?tjƒ}tjdtd|fƒ}|jƒ|jƒdS(NRPR(RfRRRTR8R[R^(RR«R·((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_queue_in_process    s 
cCs*tjdtƒ}|jƒ|jƒdS(NRP(RfRTR|R[R^(RR`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_pool_in_process#    s
csctƒ}t|ƒ‰ˆjdƒtjd‡fd†ƒ}ˆjƒ|jƒdks_t‚dS(NR‡RPcs
ˆjƒS(N(Rƒ((tflike(sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRV,    s(RR}RËRfRTRƒtgetvalueR˜(RtsioR·((Rˆsa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt test_flushing(    s       
(R"R#R†R‡R‹(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR…    s        t TestTimeoutscBs eZed„ƒZd„ZRS(cCsQtjdƒ|jdƒ|jƒtjj|ƒ}|jdƒ|jƒdS(Nii{iÈ(RRbRnR“RfRÞRß(RJtchildR“R¨((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt _test_timeout5    s   
 cCsútjƒ}zÙtjdƒtjdtƒ\}}tjjddƒ}tjd|j    d||j
fƒ}|j ƒ|j ƒ|j |jƒdƒ|j ƒ|jƒ}|j |jƒdƒ|j ƒ|j ƒ|jd    ƒWdtj|ƒXdS(
Ngš™™™™™¹?RtRàtAF_INETRPRi{iÈi
(tsockettgetdefaulttimeouttsetdefaulttimeoutRfRuRURÞRâRTRŽR“R[R“R.RxRãR^(Rt old_timeouttparentRRäR`R¨((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRÜ>    s"  
 
 
 
 
(R"R#RRŽRÜ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRŒ4    s    tTestNoForkBombcBseZd„ZRS(cCsÎtjjtjjtƒdƒ}trwtjj|ƒ\}}}|j    d|j
dƒƒ|j d|j
dƒƒnStjj |ƒ\}}}|j    d|j
dƒj ƒƒ|j    d|j
dƒƒdS(Nsmp_fork_bomb.pyR£tasciiRÒt123(RtpathR^tdirnamet__file__RGRlt script_helpertassert_python_failureR.tdecodeR\tassert_python_okRŠ(RRHtrctoutterr((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyttest_noforkbombW    s!(R"R#R¢(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR•V    st    TestFlagscBs/eZed„ƒZed„ƒZd„ZRS(cCs|jttjƒƒdS(N(RnttupleRtflags(RJR¨((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytrun_in_grandchildg    scCsddl}tjdtƒ\}}tjd|jd|fƒ}|jƒ|jƒ}|jƒ|j    ƒ|j    ƒt
t j ƒ|f}|j |ƒGHdS(NiÿÿÿÿRtRPR(tjsonRfRuRVRTR¦R[RxR^R“R¤RR¥tdumps(RJR§R…R}R`tgrandchild_flagsR¥((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt run_in_childk    s 
 
 
 
cCsxddl}ddl}dd}|jtjdddd|gƒ}|j|jdƒƒ\}}|j||ƒdS(    Niÿÿÿÿs1from test.test_multiprocessing import TestFlags; sTestFlags.run_in_child()s-Es-Bs-Os-cR–(R§t
subprocesst check_outputRt
executabletloadsRR.(RR§R«tprogRÌt child_flagsR©((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt
test_flagsx    s(R"R#RR¦RªR±(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR£f    s tTestForkAwareThreadLockcBs eZed„ƒZd„ZRS(cCsl|dkrHtjd|jd|d|fƒ}|jƒ|jƒn|jttjƒƒ|j    ƒdS(NiRPR(
RfRTRR[R^RnRARt_afterfork_registryR“(RJR8R¨R`((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR‹    s  %
 cCs…tjtƒ\}}tjƒ}ttjƒ}tjd|jdd|fƒ}|j    ƒ|j
ƒ}|j ƒ|j ||ƒdS(NRPRi( RfRuRVRtForkAwareThreadLockRAR³RTRR[RxR^tassertLessEqual(RR…R}Rätold_sizeR`tnew_size((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRЕ    s !
 
(R"R#RRRÐ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyR²†    s
csÜtjjdƒrHytjƒ}WqHtk
rDtjdƒ‚qHXntƒ|dkrnddl
m }nt j ƒtjƒjtƒtjdƒt_tjjdƒt_tjjƒtjjƒtjjdƒt_ttjƒdd„ƒttjƒdd„ƒttjƒdd    „ƒt}tj j!‰tj"‡fd
†|Dƒƒ}t#j$d t%fd t%fd t&ƒ||ƒWdQXtjj'ƒtjj'ƒtjj'ƒtjj(ƒt`t`t`dS(Ntlinuxs1OSError raises on RLock creation, see issue 3111!iÿÿÿÿ(t run_unittestitkeycSs|jS(N(R"(ttc((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRV    scSs|jS(N(R"(R»((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRVà    scSs|jS(N(R"(R»((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyRVÄ    sc3s|]}ˆ|ƒVqdS(N((R+R»(tloadTestsFromTestCase(sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pys    <genexpr>É    ss%.+__(get|set)slice__ has been removedssys.exc_clear\(\) not supportedtquiet()RRÜRQRfRÑRÁRRRRttest.test_supportR¹Rt get_temp_dirR'R(R,RRRYR<RaR`R\R&RR[R-ttestcases_processesRüttestcases_threadsttestcases_managerttestcases_othertdefaultTestLoaderR¼t    TestSuiteRtcheck_py3k_warningstDeprecationWarningRURdR†(R—RÏt    testcasestsuite((R¼sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt    test_main«    s:  
  J      
    cCsttjddƒjƒdS(Nt    verbosityi(RÊRtTextTestRunnerR—(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pytmainÛ    st__main__(g=
×£p=ê?gffffffÖ?gffffffö?(gš™™™™™¹?gš™™™™™¹?gš™™™™™¹?(Rs_h(‡RRRRRRRkR<RRRêR2RÂttest.script_helperRlRRt import_moduleRRÍtmultiprocessing.dummyRftmultiprocessing.connectiontmultiprocessing.managerstmultiprocessing.heapRZRRRURÛt ImportErrorRVtmultiprocessing.sharedctypesRRRøRÈRR‹RR)R,RkR(R³R´RµR"t HAVE_GETVALUERÜRGRRÔtctypesR
R R RRRR$R5R8RTRR›R¤R§R¨RÉRÕRÝRìRòRR'R:R;RWRXR]RjRsRtRuRvRyRzRtregisterR…RŒRRŽRR•R’RR¦R¤RÝRçRR    RRR&R:RRRDRHRXRYRÀROR[R\RÂR`RÁRbRnRoRyR{R|R}R…RŒR•R£R²RÃRÊRÍR"(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_multiprocessing.pyt<module>s                    
 
 
 
 
     
          ¸        Ö6…-EZ< [    2        $      *% ôE69!C             
 
 
!                    "           0