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
Q\¬Qc@ssdZddlmZddlmZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlmZmZddlmZddlmZddlmZddlZddlZddlZddlZyddlZWnek
r=eZnXyddlZWnek
rgeZnXe Z!ej"Z#d    „Z$d
fd „ƒYZ%d e%ej&fd „ƒYZ'de%ej&fd„ƒYZ(de%fd„ƒYZ)de)ej&fd„ƒYZ*de)ej&fd„ƒYZ+de)fd„ƒYZ,de,ej&fd„ƒYZ-de,ej&fd„ƒYZ.de)fd„ƒYZ/de/ej&fd„ƒYZ0d e/ej&fd!„ƒYZ1d"fd#„ƒYZ2d$e2ej3fd%„ƒYZ4d&e2ej3fd'„ƒYZ5d(fd)„ƒYZ6d*e6ej&fd+„ƒYZ7d,e6ej&fd-„ƒYZ8d.e    j9fd/„ƒYZ:d0e:fd1„ƒYZ;d2e:fd3„ƒYZ<d4fd5„ƒYZ=d6fd7„ƒYZ>d8e    j9e=fd9„ƒYZ?d:e?e>fd;„ƒYZ@d<e?fd=„ƒYZAd>e    j9e=fd?„ƒYZBd@eBe>fdA„ƒYZCdBeBfdC„ƒYZDdDe    j9fdE„ƒYZEdFeEfdG„ƒYZFdHeEfdI„ƒYZGdJe?eBfdK„ƒYZHdLe@eCeHe>fdM„ƒYZIdNeHfdO„ƒYZJdPejKfdQ„ƒYZLejMeLjNƒdRe    j9fdS„ƒYZOdTe    j9fdU„ƒYZPdVePfdW„ƒYZQdXePfdY„ƒYZRdZe    j9fd[„ƒYZSd\eSfd]„ƒYZTd^eSfd_„ƒYZUd`e    j9fda„ƒYZVdbeVfdc„ƒYZWddeVfde„ƒYZXe    jYejZdfkdgƒdhe    j9fdi„ƒYƒZ[dje[fdk„ƒYZ\dle[fdm„ƒYZ]dn„Z^e_dokroe^ƒndS(puUnit tests for the io module.iÿÿÿÿ(tprint_function(tunicode_literalsN(tcycletcount(tdeque(tUserList(t test_supportcCs,tjtdddƒ}|jSWdQXdS(u(Get the default TextIOWrapper chunk sizeurtencodingulatin1N(tiotopent__file__t _CHUNK_SIZE(tf((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_default_chunk_size8stMockRawIOWithoutReadcBsneZdZd d„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d d
„Z RS( umA RawIO implementation without read(), so as to exercise the default
    RawIO.read() which calls readinto().cCs.t|ƒ|_g|_d|_d|_dS(Ni(tlistt _read_stackt _write_stackt_readst_extraneous_reads(tselft
read_stack((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt__init__Bs        cCs |jjt|ƒƒt|ƒS(N(Rtappendtbytestlen(Rtb((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytwriteHscCstS(N(tTrue(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytwritableLscCsdS(Ni*((R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytfilenoOscCstS(N(R(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytreadableRscCstS(N(R(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytseekableUscCsdS(Ni((Rtpostwhence((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytseekXscCsdS(Ni((R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttell[scCsÄ|jd7_t|ƒ}y|jd}Wn!tk
rO|jd7_dSX|dkrj|jd=dSt|ƒ}t|ƒ|kr |jd=|||*|S|| |(|||jd<|SdS(Nii(RRRt
IndexErrorRtNone(Rtbuftmax_lentdatatn((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytreadinto^s$   
 
 
 cCs|S(N((RR!((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttruncatess(N(t__name__t
__module__t__doc__RRRRRR R#R$R+R&R,(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR>s                                 tCMockRawIOWithoutReadcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR0vstPyMockRawIOWithoutReadcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR1yst    MockRawIOcBseZdd„ZRS(cCsA|jd7_y|jjdƒSWn|jd7_dSXdS(Niit(RRtpopR(RR*((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytreads N(R-R.R&R5(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR2}st
CMockRawIOcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR6‡st PyMockRawIOcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR7ŠstMisbehavedRawIOcBs8eZd„Zdd„Zd„Zd„Zd„ZRS(cCstj||ƒdS(Ni(R2R(RR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRscCstj||ƒdS(Ni(R2R5(RR*((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR5’scCsdS(Ni…ÿÿÿ((RR!R"((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR#•scCsdS(Ni8þÿÿ((R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR$˜scCstj||ƒt|ƒdS(Ni(R2R+R(RR'((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR+›sN(R-R.RR&R5R#R$R+(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR8Žs
             tCMisbehavedRawIOcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR9ŸstPyMisbehavedRawIOcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR:¢stCloseFailureIOcBseZdZd„ZRS(icCs|jsd|_t‚ndS(Ni(tclosedtIOError(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytclose©s        (R-R.R<R>(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR;¦stCCloseFailureIOcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR?®stPyCloseFailureIOcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR@±st
MockFileIOcBs&eZd„Zdd„Zd„ZRS(cCs#g|_tt|ƒj|ƒdS(N(t read_historytsuperRAR(RR)((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR·s    cCsDtt|ƒj|ƒ}|jj|dkr3dn    t|ƒƒ|S(N(RCRAR5RBRR&R(RR*tres((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR5»s(cCs,tt|ƒj|ƒ}|jj|ƒ|S(N(RCRAR+RBR(RRRD((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR+ÀsN(R-R.RR&R5R+(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRAµs     t CMockFileIOcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyREÅst PyMockFileIOcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRFÈstMockNonBlockWriterIOcBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsg|_d|_dS(N(RR&t _blocker_char(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÎs    cCs dj|jƒ}g|j(|S(NR3(tjoinR(Rts((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt pop_writtenÒs
cCs ||_dS(u'Block when a given char is encountered.N(RH(Rtchar((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytblock_on×scCstS(N(R(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÛscCstS(N(R(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR ÞscCstS(N(R(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRáscCs“t|ƒ}d}|jryy|j|jƒ}Wntk
rDqyX|dkri|jj|| ƒ|Sd|_dSn|jj|ƒt|ƒS(Niÿÿÿÿi(RRHtindext
ValueErrorRRR&R(RRR*((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRäs           (    R-R.RRKRMRR RR(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRGÌs                        tCMockNonBlockWriterIOcBseZejZRS((R-R.RtBlockingIOError(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRPøstPyMockNonBlockWriterIOcBseZejZRS((R-R.tpyioRQ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRRûstIOTestcBs(eZd„Zd„Zd„Zed„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„Zd„Zd„Zd„Zd„Zd„Z d„Z!d „Z"RS("cCstjtjƒdS(N(tsupporttunlinktTESTFN(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytsetUpscCstjtjƒdS(N(RURVRW(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttearDownscCs¨|j|jdƒdƒ|jdƒ|j|jƒdƒ|jdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jƒdƒ|j|jddƒdƒ|j|jƒdƒ|j|jtdƒƒd    ƒ|j|jdƒdƒ|j|jd
ƒdƒ|j|jdd ƒd ƒ|j|jƒd ƒ|j|jd ƒd ƒ|j|jƒd ƒ|jt|jdƒdS(Nsblah.iisHello.iiÿÿÿÿis     world
 
 
i    thii i g(t assertEqualRR,R$R#t    bytearrayt assertRaisest    TypeError(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    write_opss$  cCs5|jdƒ}|j|dƒt|ƒ}|j|j|ƒdƒ|j|dƒ|j|j|ƒdƒ|jt|ƒdƒ|j|d dƒ|j|jdƒdƒ|j|jdƒdƒ|j|jd    ƒd
ƒ|j|jtd ƒƒdƒ|j|jd dƒd ƒ|j|jdƒdƒ|j|jdƒd
ƒ|j|jtƒƒdƒ|j|jd d    ƒdƒ|j|jdƒdƒ|j|jƒdƒ|jt|jdƒ|r1|jdƒ|j|jƒdƒ|jd ƒ|j|jƒdƒ|j|jƒd
ƒndS(Nithellos worlisd
iis hello world
iR3txiúÿÿÿitworldi
gsworld
(    R5R[R\R+RR#R$R]R^(RR tbufferedR)((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytread_opss4   iicCsµ|jƒst‚|jƒs$t‚|j|j|jƒ|jƒ|j|jƒ|jƒ|j|jdƒdƒ|j|jƒ|jdƒ|j|jddƒ|jdƒ|j|jƒ|jdƒ|j|jƒ|jdƒ|j|jddƒ|jdƒ|j|j|jdƒ|jdƒ|j|jƒ|jdƒ|j|jddƒ|jdƒ|j|jddƒ|jƒ|j|j    dƒdƒdS(NtxxxiiÿÿÿÿiiiRa(
RtAssertionErrorRR[R#tLARGER$RR,R5(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytlarge_file_ops;s##'#c    CsóxRd    D]J}|jtj|ƒ-}|jt|jƒ|jt|jƒWdQXqW|jtjdƒ6}|jt|jdƒ|jt|jdgƒWdQX|jtjdƒ6}|jt|jdƒ|jt|jdgƒWdQXdS(
Nuwuwburbtblahsblah
urublahublah
(uwuwb(    R    RURWR]R=R5treadlineRt
writelines(Rtmodetfp((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_invalid_operationsLs cCsê|jtjdddƒV}|j|jƒtƒ|j|jƒtƒ|j|jƒtƒ|j    |ƒWdQX|jtjdddƒV}|j|jƒtƒ|j|jƒtƒ|j|jƒtƒ|j
|ƒWdQXdS(Nuwbt    bufferingiurb( R    RURWR[RtFalseRRR R_Rd(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_raw_file_ioYscCsá|jtjdƒV}|j|jƒtƒ|j|jƒtƒ|j|jƒtƒ|j    |ƒWdQX|jtjdƒY}|j|jƒtƒ|j|jƒtƒ|j|jƒtƒ|j
|tƒWdQXdS(Nuwburb( R    RURWR[RRpRRR R_Rd(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_buffered_file_ioesc
Cs'|jtjdƒ}|jdƒWdQX|jtjdƒ­}|j|jƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jd    ƒd
ƒ|j|jƒd ƒ|j|jdƒd ƒ|jt|jd ƒWdQX|jtjdƒ}|jt|jd ƒWdQXdS(Nuwbs"abc
def
xyzzy
foobar
another lineurbsabc
i
sdef
itxyiszzy
tfoobar
s another lineg333333@ur(    R    RURWRR[RjR&R]R^(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_readlineqscCsX|jƒ}|j|ƒ|jƒ}|j|dƒ|j|ƒ}|j|tƒdS(Ns hello world
(tBytesIOR_tgetvalueR[RdR(RR R)((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_raw_bytes_ios    cCsÜtjd dks"tjdkrtjdƒstdtjdtjƒtd|jdtjƒtddtjƒdSn|jtjd    d
ƒ}|j    |ƒWdQX|jtjd    ƒ}|j    |ƒWdQXdS( Niuwinudarwinu    largefileu&
Testing large file ops skipped on %s.tfileu%It requires %d bytes and a long time.u1Use 'regrtest.py -u largefile test_io' to run it.uw+bi(
tsystplatformRUtis_resource_enabledtprinttstderrRgR    RWRh(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_large_file_ops‡s"
 
    
cCsÃx¼dD]´}d}|jtjd|ƒ}|jdƒWdQX|j|jtƒd}y-|jtjd|ƒ}ddWdQXWn$tk
r­|j|jtƒqX|j    dƒqWdS(NiiiduwbReu 1 // 0 didn't raise an exception(iiid(
R&R    RURWRR[R<RtZeroDivisionErrortfail(RtbufsizeR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_with_open™s  c
CsÔ|jtjdƒ}|jdƒWdQX|jtjdddƒ}|j|jƒdƒWdQX|jtjdƒ}|j|jƒdƒWdQX|jtjdƒ }|j|jƒdkƒWdQXdS(NuwbReuabRoiiua(R    RURWRR[R$t
assertTrue(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_append_mode_tell©scs¥g‰d|jf‡‡fd†ƒY‰ˆtjdƒ}|jdƒ~tjƒ|jˆdddgƒ|jtjdƒ}|j|jƒdƒWdQXdS(    NtMyFileIOcs>eZ‡‡fd†Z‡‡fd†Z‡‡fd†ZRS(csBˆjdƒytˆ|ƒj}Wntk
r6nX|ƒdS(Ni(RRCt__del__tAttributeError(RR (R†trecord(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR‡¶s   cs$ˆjdƒtˆ|ƒjƒdS(Ni(RRCR>(R(R†R‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR>¾s cs$ˆjdƒtˆ|ƒjƒdS(Ni(RRCtflush(R(R†R‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRŠÁs (R-R.R‡R>RŠ((R†R‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR†µsuwbReiiiurb(tFileIORURWRt
gc_collectR[R    R5(RR ((R†R‰sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_destructor³s" 
csXg‰d|f‡‡fd†ƒY‰ˆƒ}~tjƒ|jˆdddgƒdS(NtMyIOcsGeZd„Z‡‡fd†Z‡‡fd†Z‡‡fd†ZRS(cSsd|_d|_d|_dS(Niii(ton_delton_closeton_flush(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÏs        csEˆj|jƒytˆ|ƒj}Wntk
r9nX|ƒdS(N(RRRCR‡Rˆ(RR (RŽR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR‡×s  cs'ˆj|jƒtˆ|ƒjƒdS(N(RRRCR>(R(RŽR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR>ßscs'ˆj|jƒtˆ|ƒjƒdS(N(RR‘RCRŠ(R(RŽR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRŠâs(R-R.RR‡R>RŠ((RŽR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRŽÎs    iii(RURŒR[(RtbaseR ((RŽR‰sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_check_base_destructorÌs     
cCs|j|jƒdS(N(R“tIOBase(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_IOBase_destructorêscCs|j|jƒdS(N(R“t    RawIOBase(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_RawIOBase_destructoríscCs|j|jƒdS(N(R“tBufferedIOBase(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_BufferedIOBase_destructorðscCs|j|jƒdS(N(R“t
TextIOBase(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_TextIOBase_destructoróscCsc|jtjdƒ}|jdƒWdQX|jtjdƒ}|j|jƒdƒWdQXdS(NuwbReurb(R    RURWRR[R5(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_close_flushesöscCsŸtjdtdƒƒ}t|jƒƒ}|jtjddƒ }|j|j|ƒ|ƒWdQX|jtjdƒ }|j|j|ƒ|ƒWdQXdS(Ntii
uwbi(    tarraytrangeRttostringR    RURWR[R(RtaR*R ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_array_writesüs cCs&|jt|jtjddtƒdS(Nuwtclosefd(R]ROR    RURWRp(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_closefdsc
Cs«|jtjdƒ}|jdƒWdQX|jtjdƒe}|j|jƒddtƒ}|j|jƒdƒ|jdƒ|j    ƒ|j
t |jƒWdQXdS(Nuwuegg
urR£i( R    RURWRRRpR[R5R#R>R]RO(RR Ry((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_read_closeds 
cCs&|jt|jtjddtƒdS(NurR£(R]ROR    RURWRp(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_no_closefd_with_filenamesc
Cs|jtjdƒ}|jdƒWdQX|jtjdƒW}|j|jjjtƒ|j|j    ƒddt
ƒ}|j|jjjt
ƒWdQXdS(Nuwbsegg
urR£( R    RURWRR[tbuffertrawR£RRRp(RR Ry((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_closefd_attrs cCs˜|jtjdƒ}|jdƒ||_tj|ƒ}~tjƒ|j|ƒdk|ƒ|j
tjdƒ}|j |j ƒdƒWdQXdS(Nuwbtabcxxxurb( R‹RURWRR tweakreftrefRŒR„R&R    R[R5(RR twr((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_garbage_collections     
c    Csd}tjj|ƒs1|jdj|ƒƒntjdkrP|jdƒntjtj    krr|jdƒn|j
|dddƒ}|j t |j ƒWdQX|j
|dƒ}|j t |j ƒWdQX|j
|d    ƒ}|j t |j ƒWdQXdS(
Nu    /dev/zerou{0} does not existiÿÿÿu+test can only run in a 32-bit address spaceu$test requires at least 2GB of memoryurbRoiur(tostpathtexiststskipTesttformatRztmaxsizeRUtreal_max_memuset_2GR    R]t OverflowErrorR5(RtzeroR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_unbounded_file+scCsT|jtjdddƒ}d„}||_|jt|jƒ|j|jƒdS(NuwbRoicSs tƒ‚dS(N(R=(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    bad_flush=s(    R    RURWRŠR]R=R>R„R<(RR Rº((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_flush_error_on_close;s
        cCsP|jtjdddƒ}|jƒ|jƒ|jƒ|jt|jƒdS(NuwbRoi(R    RURWR>R]RORŠ(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_multi_closeCs
 
 
 
cCsÛ|jd
ƒ}|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jdƒd    ƒdS( NtabctdtefgitabtcteftgR3(sabcR¾NR¿N(RR&R[R5(Rtrawio((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_RawIOBase_readJsc CsŒ|jtdƒt}|jtdƒY}|j|jƒdtƒ}|j|jƒdtƒ|jƒ|jƒ|jƒWdQXWdQXdS(NurbR£(R    R
R‹RRpRRjR>(Rtf1tf2tfileio((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_fileio_closefdWs
 
I€(#R-R.RXRYR_RpRdRgRhRnRqRrRuRxRRƒR…RR“R•R—R™R›RœR¢R¤R¥R¦R©R®R¹R»R¼RÅRÉ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRTÿs@                                                 
                                       
                            tCIOTestcBseZd„ZRS(cCsnd|jfd„ƒY}|ƒ|ƒ}||_tj|ƒ}~~tjƒ|j|ƒdk|ƒdS(NRŽcBseZd„ZRS(cSsdS(N((R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR>ks(R-R.R>(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRŽjs(R”tobjR«R¬RURŒR„R&(RRŽRËR­((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_IOBase_finalizefs        
(R-R.RÌ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÊdstPyIOTestcBs eZejdƒejƒZRS(uBlen(array.array) returns number of elements rather than bytelength(R-R.tunittesttskipRTR¢(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÍxstCommonBufferedTestscBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z RS( cCsH|jƒ}|j|ƒ}|j|jƒ|ƒ|jt|jƒdS(N(R2ttptassertIstdetachR]RO(RR¨R'((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_detachs cCs5|jƒ}|j|ƒ}|jd|jƒƒdS(Ni*(R2RÑR[R(RRÄtbufio((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_fileno‡s cCsdS(N((R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_no_filenoscCsQ|jƒ}|j|ƒ}|jt|jddƒ|jt|jddƒdS(Niiÿÿÿÿi(R2RÑR]ROR#(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_invalid_args’s cs›|j}g‰d|f‡‡fd†ƒY‰|jƒ}ˆ|ƒ}|jƒ}~tjƒ|r|jˆdddgƒn|jˆddgƒdS(Nt MyBufferedIOcs>eZ‡‡fd†Z‡‡fd†Z‡‡fd†ZRS(csBˆjdƒytˆ|ƒj}Wntk
r6nX|ƒdS(Ni(RRCR‡Rˆ(RR (RÙR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR‡s   cs$ˆjdƒtˆ|ƒjƒdS(Ni(RRCR>(R(RÙR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR>¥s cs$ˆjdƒtˆ|ƒjƒdS(Ni(RRCRŠ(R(RÙR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRЍs (R-R.R‡R>RŠ((RÙR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRٜsiii(RÑR2RRURŒR[(RRÑRÄRÕR((RÙR‰sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_override_destructor™s       
csE|jƒ}|j|ƒ‰‡fd†}|ƒ|jt|ƒdS(NcsˆWdQXdS(N(((RÕ(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_with¹s(R2RÑR]RO(RRÄRÛ((RÕsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_context_managerµs
 cs³ˆjƒ‰‡‡fd†}tjdƒ}ˆjt|ƒWdQX|jƒjƒ}|r¯ˆjt|j    ƒƒdƒˆj
|j dƒ|ƒˆj
|j dƒ|ƒndS(NcsˆjˆƒjdS(N(RÑtxyzzy((RÄR(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR ÅsustderriuException IOError: u ignored( R;RUtcaptured_outputR]RˆRwtstripR[Rt
splitlinesR„t
startswithtendswith(RR RJ((RÄRsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_error_through_destructorÁs cCs›|jƒ}|j|ƒ}d|jj|jjf}|jt|ƒd|ƒd|_|jt|ƒd|ƒd|_|jt|ƒd|ƒdS(Nu%s.%su<%s>udummyu<%s name=u'dummy'>tdummyu<%s name='dummy'>(R2RÑR.R-R[treprtname(RR¨Rtclsname((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    test_reprÐs         cCsT|jƒ}d„}||_|j|ƒ}|jt|jƒ|j|jƒdS(NcSs tƒ‚dS(N(R=(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRºÜs(R2RŠRÑR]R=R>R„R<(RR¨RºR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR»Ús          cCs‹|jƒ}d„}d„}||_|j|ƒ}||_|jtƒ}|jƒWdQX|j|jjdƒ|j    |j
ƒdS(NcSstdƒ‚dS(Nuflush(R=(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRºåscSstdƒ‚dS(Nuclose(R=(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    bad_closeçsuclose(uclose( R2R>RÑRŠR]R=R[t    exceptiontargst assertFalseR<(RR¨RºRéRterr((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_close_error_on_closeãs                 cCsP|jƒ}|j|ƒ}|jƒ|jƒ|jƒ|jt|jƒdS(N(R2RÑR>R]RORŠ(RR¨R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR¼ñs  
 
 
cCsP|jƒ}|j|ƒ}|jƒ}|jttfƒ||_WdQXdS(N(R2RÑR]RˆR^R¨(RR¨R'Ra((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_readonly_attributesùs
  (R-R.RÔRÖR×RØRÚRÜRãRèR»RîR¼Rï(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÐ~s                                
               t
SizeofTestcBseZejd„ƒZRS(cCs‚d}d}|jƒ}|j|d|ƒ}tj|ƒ|}|jƒ}|j|d|ƒ}|jtj|ƒ||ƒdS(Nii t buffer_size(R2RÑRzt    getsizeofR[(Rtbufsize1tbufsize2RÄRÕtsize((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_sizeofs  (R-R.RUt cpython_onlyRö(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRðstBufferedReaderTestcBs›eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z e j ed
ƒejd ƒd „ƒƒZd „Zd„ZRS(urbcCs÷|jdgƒ}|j|ƒ}|j|ƒ|j|ddƒ|j|ddƒ|jd|jƒƒ|jt|j|ddƒ|jt|j|ddƒ|jt|j|ddƒ|jdgƒ}|j|ƒ|jd|jƒƒdS(NR½Rñiiiiðÿÿÿiÿÿÿÿ(R2RÑRR[R5R]RO(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_constructors  cCsbxEdD]=}|jdƒ}|j|ƒ}|jd|j|ƒƒqW|jt|jdƒdS(    NiR½R¾R¿tabcdefgiþÿÿÿ(Ni(sabcR¾sefg(R&R2RÑR[R5R]RO(RtargRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    test_read s
 cCs-|jdƒ}|j|ƒ}|jd|jdƒƒ|jd|jdƒƒ|j|jdƒ|jd|jdƒƒ|j|jdƒ|jd|jdƒƒ|j|jd    ƒ|jd|jdƒƒ|j|jd
ƒ|jd |jdƒƒ|j|jd ƒ|jt|jd ƒdS(NR½R¾R¿R¡iRRÁidiiR3iiÿÿÿÿ(sabcR¾sefg(R2RÑR[R5tread1RR]RO(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt
test_read1(scCsû|jd ƒ}|j|ƒ}tdƒ}|j|j|ƒdƒ|j|dƒ|j|j|ƒdƒ|j|dƒ|j|j|ƒdƒ|j|dƒ|j|j|ƒdƒ|j|d    ƒ|j|j|ƒd
ƒ|j|d    ƒdS( NR½R¾R¿iRÀtcdRÂitgfi(sabcR¾sefg(R2RÑR\R[R+(RRÄRÕR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_readinto9s cs|‡fd†}ˆj|ƒjƒdddgƒˆj|ƒjdƒddgƒˆj|ƒjdƒdddgƒdS(Ncsˆjdƒ}ˆj|ƒS(Nsabc
sd
RÂ(sabc
sd
sef(R2RÑ(RÄ(R(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÕIssabc
sd
RÂi(R[t    readlinesR&(RRÕ((RsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_readlinesHs""c Cs    d}t|ƒ}dddddg|dggddddg|ggdddddgdddggg}x“|D]‹\}}}|j|ƒ}|j|d    |ƒ}d}    x<|D]4}
|j|j|
ƒ||    |    |
!ƒ|    |
7}    q¶W|j|j|ƒqvWdS(
Nt    abcdefghiidiiiiiiRñ(RRARÑR[R5RB( RR)tdlenttestsR‚tbuf_read_sizestraw_read_sizesRÄRÕR!tnbytes((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_bufferingPs ' $cCsä|jd ƒ}|j|ƒ}|jd|jdƒƒ|jd|jdƒƒ|jd|jƒƒ|jd    |jdƒƒ|j|jƒƒ|jd    |jƒƒ|jd ƒ}|jd
|jƒƒ|j|jƒƒdS( NR½R¾R¿tabcditeitfgR3R¡(sabcR¾NsefgNNN(R¡NN(R2R&RÑR[R5tpeekt assertIsNonetreadall(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_read_non_blockingdscCs;|jdƒ}|j|ƒ}|jd|jdƒƒdS(NR½R¾R¿Rúi(#(sabcR¾sefg(R2RÑR[R5(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_read_past_eofsscCs8|jdƒ}|j|ƒ}|jd|jƒƒdS(NR½R¾R¿Rú(sabcR¾sefg(R2RÑR[R5(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_read_allysu!Threading required for this test.ucpuc
s²zšd}ttdƒƒ|}tj|ƒtt|ƒƒ}|jtjdƒ}|j    |ƒWdQX|jtj|j
ddƒ}|j |dƒ‰g‰g‰‡‡‡fd†}gtdƒD]}t j d    |ƒ^qÊ}x|D]}|jƒqïWtjd
ƒx|D]}|jƒqW|jˆd ˆƒd jˆƒ}xBtdƒD]4}    tt|    gƒƒ}
|j|j|
ƒ|ƒq[WWdQXWdtjtjƒXdS( NièiuwbRoiicsqyGx@tddgƒD],}ˆj|ƒ}|s5Pnˆj|ƒqWWn#tk
rl}ˆj|ƒ‚nXdS(Nii(RR5Rt    Exception(R*RJR (RÕterrorstresults(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR s ittargetg{®Gáz”?u(the following exceptions were caught: %rR3(RRŸtrandomtshuffleRR\R    RURWRt    read_modeRÑt    threadingtThreadtstartttimetsleepRIRìR[RRV( RtNtlRJR R¨RatthreadsttRRÁ((RÕRRsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_threadss2 ! +        'cCsK|jdƒ}|j|ƒ}|jt|jdƒ|jt|jƒdS(NR½R¾R¿i(sabcR¾sefg(R8RÑR]R=R#R$(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_misbehaved_io«scCsd}xd|d||d|dfD]á}|jd|gƒ}|j||ƒ}|j|j|ƒd|ƒ|j|jddj||jƒƒ|jd|ddgƒ}|j||ƒ}|j|j|ƒd|ƒ|j|jddj||jƒƒq(WdS(NiiiRaiufailed for {}: {} != 0(R2RÑR[R5RR³(RR‚R*RÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_no_extraneous_read±s((R-R.RRùRüRþRRR
RRRRÎt
skipUnlessRRUtrequires_resourceR$R%R&(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRøs                                    +    tCBufferedReaderTestcBs>eZejZd„Zd„Zd„Zd„Zd„Z    RS(cCsctj|ƒtjdkr_|jƒ}|j|ƒ}|jttt    f|j
|tjƒndS(Niÿÿÿ( RøRùRzR´R2RÑR]R·t MemoryErrorROR(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRùÉs   cCs²|jdgƒ}|j|ƒ}|jt|j|ddƒ|jt|jƒ|jt|j|ddƒ|jt|jƒ|jt|j|ddƒ|jt|jƒdS(NR½Rñiiðÿÿÿiÿÿÿÿ(R2RÑR]RORR5(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_initializationÓscCs8|jdƒ}|j|ƒ}|jt|jdƒdS(NR½R¾R¿i
(sabcR¾sefg(R8RÑR]R=R5(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_misbehaved_io_readÝscCsf|jtjdƒ}|j|ƒ}||_tj|ƒ}~tjƒ|j|ƒdk|ƒdS(Nuw+b(
R‹RURWRÑR R«R¬RŒR„R&(RRÄR R­((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR®äs    
c    Cs9|jtdƒ!|jtjƒdddƒWdQXdS(NuBufferedReaderi(tassertRaisesRegexpR^RÑRRv(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_args_errorïs(
R-R.RtBufferedReaderRÑRùR+R,R®R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR)Æs         
   
        tPyBufferedReaderTestcBseZejZRS((R-R.RSR/RÑ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR0õstBufferedWriterTestcBsìeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zejedƒejdƒd„ƒƒZd„Zd„Zd„ZRS(uwbcCs|jƒ}|j|ƒ}|j|ƒ|j|ddƒ|j|ddƒ|jd|jdƒƒ|jƒ|jt|j|ddƒ|jt|j|ddƒ|jt|j|ddƒ|j|ƒ|jd|jd    ƒƒ|jƒ|jd
j|j    ƒd ƒdS( NRñiiiR½iiðÿÿÿiÿÿÿÿtghiR3tabcghi(
R2RÑRR[RRŠR]RORIR(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRùüs  
 
cCs\|jƒ}|j|ƒ}|jdƒ|j|jƒ|jƒ|j|jdgƒdS(Nshowdy!(R2RÑRRìRRÓR[(RR¨R'((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_detach_flush s   
cCs?|jƒ}|j|dƒ}|jdƒ|j|jƒdS(NiR½(R2RÑRRìR(RtwriterRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt
test_writes  cCs’|jƒ}|j|dƒ}d}x8tdt|ƒdƒD]}|j|||d!ƒq=Wdj|jƒ}|j|j|d ƒ|ƒdS(NitabcdefghijklmnopiiR3iøÿÿÿ(    R2RÑRŸRRRIRR„Rá(RR5RÕtcontentsR*tflushed((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_write_overflows c    Csættdƒƒd}d}|jƒ}|j|dƒ}d„}|ƒ}xm|t|ƒkr»tt|ƒt|ƒ|ƒ}|j|j||||!ƒ|ƒ||ƒ||7}qOW|j    ƒ|j|dj
|j ƒƒdS(Niièii css7x0tdƒD]"}xtdƒD] }|Vq Wq WdS(Nii(RRŸ(RõR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    gen_sizes-sR3( RRŸR2RÑRtmintnextR[RRŠRIR(    Rtintermediate_funcR8R*R5RÕR;tsizesRõ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt check_writes&s         $
 
    cCs|jd„ƒdS(NcSsdS(N(R&(RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt<lambda><s(R@(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_writes;scCs|jd„ƒdS(NcSs
|jƒS(N(RŠ(RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRA?s(R@(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writes_and_flushes>scCs0d„}|j|ƒd„}|j|ƒdS(NcSsH|jƒ}|j|ddƒ|j|ddƒ|j|dƒdS(Nii(R$R#(RÕR!((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_seekabsBs cSsG|jddƒ}|jd
dƒ|jddƒ|j|dƒdS(Niiiÿÿÿÿ(R#(RÕR!((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_seekrelHs(R@(RRDRE((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writes_and_seeksAs         cCs|jd„ƒdS(NcSs|j|jƒƒS(N(R,R$(RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRAPs(R@(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writes_and_truncatesOscCs+|jƒ}|j|dƒ}|j|jdƒdƒ|j|jdƒdƒ|jdƒ|j|jdƒdƒ|jdƒy|jd    ƒWn|jk
rµ}|j}nX|jd
ƒ|j|d ƒ|j|jƒd ƒ|j|jd ƒdƒ|jƒ}|j    |j
dƒ|ƒdS(NiR itefghiitktjklmnt0topqrwxyz0123456789u'BlockingIOError should have been raiseditabcdefghijklmnopqrwxyzt    ABCDEFGHIi    t    01234567A( RGRÑR[RRMRQtcharacters_writtenRRKR„Rá(RR¨RÕR twrittenRJ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_write_non_blockingRs$      cCsÙtjƒ}|j|dƒ}|j|jdƒdƒ|j|jƒdƒ|jddƒ|j|jdƒdƒ|jddƒ|j|jƒdƒ|j|jdƒdƒ|jƒ|j|jƒd    ƒdS(
NitabcdefiitXYitXYcdeft123456t XYcdef123456(    RRvRÑR[RR$R#RwRŠ(RR¨RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_write_and_rewindms 
cCsP|jƒ}|j|dƒ}|jdƒ|jƒ|jd|jdƒdS(NiR½i(R2RÑRRŠR[R(RR5RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt
test_flushzs
 
cCsddddg}|jƒ}|j|dƒ}|j|ƒ|jƒ|jdj|jƒdƒdS(NRÀRÿRÂiR3RS(R2RÑRkRŠR[RIR(RR!R5RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writeliness   
cCsjtdddgƒ}|jƒ}|j|dƒ}|j|ƒ|jƒ|jdj|jƒdƒdS(NRÀRÿRÂiR3RS(RR2RÑRkRŠR[RIR(RR!R5RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writelines_userlist‰s   
cCsW|jƒ}|j|dƒ}|jt|jdddgƒ|jt|jdƒdS(Niiii(R2RÑR]R^RkR&(RR5RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writelines_error‘s cCsS|jƒ}|j|dƒ}|jdƒ~tjƒ|jd|jdƒdS(NiR½i(R2RÑRRURŒR[R(RR5RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR—s   
cCs³|jtj|jddƒU}|j|dƒ}|jdƒ|j|jdƒdƒ|j|jƒdƒWdQX|jtjdddƒ}|j|j    ƒdƒWdQXdS(    NRoiiRSiiurbR½(
R    RURWt
write_modeRÑRR[R,R$R5(RR¨RÕR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_truncateŸs! u!Threading required for this test.ucpuc    sæzÎd}ttdƒƒ|}tddgƒ}d}tƒ‰xD|t|ƒkr†t|ƒ}ˆj||||!ƒ||7}qCW~|jtj    |j
ddƒÀ}|j |dƒ‰g‰‡‡‡fd†}gtd    ƒD]}t j d
|ƒ^qå}    x|    D]}
|
jƒq
Wtjd ƒx|    D]}
|
jƒq2W|jˆd ˆƒˆjƒWdQX|jtj    d ƒ}|jƒ} WdQXx6tdƒD](} |j| jt| gƒƒ|ƒq¡WWdtjtj    ƒXdS(NièiiiiRoicsmyCx<trAyˆjƒ}Wntk
r0dSXˆj|ƒqWWn#tk
rh}ˆj|ƒ‚nXdS(N(RtpopleftR%RRR(RJR (RÕRtqueue(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR Ás      iRg{®Gáz”?u(the following exceptions were caught: %rurb(RRŸRRRR=RR    RURWR]RÑRRRRRRIRìR>R5R[RRV( RR R8R?R*RõR¨R RaR"R#RJR((RÕRR`sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR$©s:     ! +        *cCsa|jƒ}|j|dƒ}|jt|jdƒ|jt|jƒ|jt|jdƒdS(NiiRS(R8RÑR]R=R#R$R(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR%Üs
 cCs9tjdtfƒ|j|jƒddƒWdQXdS(Numax_buffer_size is deprecatedii (RUtcheck_warningstDeprecationWarningRÑR2(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_max_buffer_size_deprecationãs     cCsa|jƒ}d„}||_|j|ƒ}|jdƒ|jt|jƒ|j|jƒdS(NcSs tƒ‚dS(N(R=(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    bad_writeêstspam(R2RRÑR]R=R>R„R<(RR¨RdR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_write_error_on_closeès          (R-R.R]RùR4R6R:R@RBRCRFRGRRRXRYRZR[R\RR^RÎR'RRUR(R$R%RcRf(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR1ùs.                                                                    
2        tCBufferedWriterTestcBs5eZejZd„Zd„Zd„Zd„ZRS(cCsctj|ƒtjdkr_|jƒ}|j|ƒ}|jttt    f|j
|tjƒndS(Niÿÿÿ( R1RùRzR´R2RÑR]R·R*ROR(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRùös   cCsµ|jƒ}|j|ƒ}|jt|j|ddƒ|jt|jdƒ|jt|j|ddƒ|jt|jdƒ|jt|j|ddƒ|jt|jdƒdS(NRñitdefiðÿÿÿiÿÿÿÿ(R2RÑR]RORR(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR+s cCs§|jtjdƒ}|j|ƒ}|jdƒ||_tj|ƒ}~tjƒ|j    |ƒdk|ƒ|j tjdƒ}|j |j ƒdƒWdQXdS(Nuw+bt123xxxurb(R‹RURWRÑRRaR«R¬RŒR„R&R    R[R5(RRÄR R­((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR®
s     
c    Cs9|jtdƒ!|jtjƒdddƒWdQXdS(NuBufferedWriteri(R-R^RÑRRv(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR.s(    R-R.RtBufferedWriterRÑRùR+R®R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRgós
        
   
   tPyBufferedWriterTestcBseZejZRS((R-R.RSRjRÑ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRkstBufferedRWPairTestcBs˜eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„ZRS(cCs2|j|jƒ|jƒƒ}|j|jƒdS(N(RÑR2RìR<(Rtpair((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRù$scCs8|j|jƒ|jƒƒ}|j|j|jƒdS(N(RÑR2R]tUnsupportedOperationRÓ(RRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÔ(sc    CsBtjdtfƒ'|j|jƒ|jƒddƒWdQXdS(Numax_buffer_size is deprecatedii (RURaRbRÑR2(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt,test_constructor_max_buffer_size_deprecation,s     cCs<dtfd„ƒY}|jt|j|ƒ|jƒƒdS(Nt NotReadablecBseZd„ZRS(cSstS(N(Rp(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR3s(R-R.R(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRp2s(R2R]R=RÑ(RRp((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt"test_constructor_with_not_readable1scCs<dtfd„ƒY}|jt|j|jƒ|ƒƒdS(Nt NotWriteablecBseZd„ZRS(cSstS(N(Rp(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR:s(R-R.R(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRr9s(R2R]R=RÑ(RRr((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt#test_constructor_with_not_writeable8scCs§|j|jdƒ|jƒƒ}|j|jdƒdƒ|j|jdƒdƒ|j|jƒdƒ|j|jdƒ|jƒƒ}|j|jdƒdƒdS(NRSiR½iR¾RÂ(RÑRvR2R[R5R&(RRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRü?s !!csy‡fd†}ˆj|ƒjƒdddgƒˆj|ƒjƒdddgƒˆj|ƒjdƒddgƒdS(NcsˆjˆjdƒˆjƒƒS(Ns    abc
def
h(RÑRvR2((R(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRAIssabc
sdef
RZi(R[R(RRm((RsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRHs""cCs>|j|jdƒ|jƒƒ}|j|jdƒdƒdS(NRSiR½(RÑRvR2R[Rý(RRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRþNs!cCsZ|j|jdƒ|jƒƒ}tdƒ}|j|j|ƒdƒ|j|dƒdS(NRSitabcde(RÑRvR2R\R[R+(RRmR)((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRUs! cCso|jƒ}|j|jƒ|ƒ}|jdƒ|jƒ|jdƒ|jƒ|j|jddgƒdS(NR½Rh(R2RÑRRŠR[R(RtwRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR6\s  
 
cCs]|j|jdƒ|jƒƒ}|j|jdƒjdƒƒ|j|jdƒdƒdS(NRSiR½(RÑRvR2R„RRáR[R5(RRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    test_peekfs!cCs5|j|jƒ|jƒƒ}|j|jƒƒdS(N(RÑR2R„R(RRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_readablelscCs5|j|jƒ|jƒƒ}|j|jƒƒdS(N(RÑR2R„R(RRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writeablepscCs5|j|jƒ|jƒƒ}|j|jƒƒdS(N(RÑR2RìR (RRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_seekabletscCsL|j|jƒ|jƒƒ}|j|jƒ|jƒ|j|jƒdS(N(RÑR2RìR<R>R„(RRm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_close_and_closed}s
cCsÞdtfd„ƒY}|j|tƒ|tƒƒ}|j|jƒƒ|j|tƒ|tƒƒ}|j|jƒƒ|j|tƒ|tƒƒ}|j|jƒƒ|j|tƒ|tƒƒ}|j|jƒƒdS(NtSelectableIsAttycBseZd„Zd„ZRS(cSstj|ƒ||_dS(N(R2Rt_isatty(Rtisatty((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR…s cSs|jS(N(R|(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR}‰s(R-R.RR}(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR{„s    (R2RÑRpRìR}RR„(RR{Rm((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_isattyƒs(R-R.RùRÔRoRqRsRüRRþRR6RvRwRxRyRzR~(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRl"s                                             
                       tCBufferedRWPairTestcBseZejZRS((R-R.RtBufferedRWPairRÑ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR˜stPyBufferedRWPairTestcBseZejZRS((R-R.RSR€RÑ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR›stBufferedRandomTestcBs¿eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(urb+uwb+cCstj|ƒtj|ƒdS(N(RøRùR1(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRù£s cCs•|jd
ƒ}|j|dƒ}|jd|jdƒƒ|jdƒ|jdƒ|j|jƒ|jd|jƒƒ|jd|jd    ƒdS( Ntasdftghjkitasitdddteeetdddeeei(RƒR„(R2RÑR[R5RRìR(RR¨trw((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_read_and_write§s  cCs^|jdƒ}|j|ƒ}|jd|jdƒƒ|jd|jƒƒ|jddƒ|jd|jdƒƒ|jdƒ|jddƒ|jd|jƒƒ|jd    |jƒƒ|jd
dƒ|jd |jƒƒ|jdd ƒ|jd |jƒƒ|jd|jdƒƒ|jƒ|jd|jƒƒ|j    t
|jdƒdS(Nt    asdfghjklR…iiRƒit123ft    asdf123fli    iüÿÿÿiiitfli g( RvRÑR[R5R$R#RRŠRwR]R^(RR¨R‰((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_seek_and_tell²s$ 
cCsý|jdƒ}|j|ƒ}|jd||dƒƒ|jdƒ|jd||dƒƒ|jd|jƒƒ|jƒ|jd|jƒƒ|jd||ƒƒ|jddƒ|jd    ƒ|jƒ|jddƒ|jd    ||d
ƒƒdS( NRRÀit12RÂiR2itXYZi(RvRÑR[RR$RŠR#(Rt    read_funcR¨RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytcheck_flush_and_readÉs 
 
cCs|jd„ƒdS(NcWs |j|ŒS(N(R5(RÕRë((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRAÜs(R“(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_flush_and_readÛscCsdd„}|j|ƒdS(NiÿÿÿÿcSs;t|dkr|ndƒ}|j|ƒ}t|| ƒS(Nii'(R\R+R(RÕR*R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    _readintoßs(R“(RR•((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_flush_and_readintoÞs cCsdd„}|j|ƒdS(NiÿÿÿÿcSsB|j|ƒ}|dkr(|| }n|jt|ƒdƒ|S(Niÿÿÿÿi(RR#R(RÕR*R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_peekæs
  (R“(RR—((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_flush_and_peekås cCsŒ|jdƒ}|j|ƒ}|jdƒ|jƒ|jdƒ|jƒ|jddƒ|jd|jƒƒ|jd|jƒƒdS(NRt123t45it    12345fghi(RvRÑRRŠR#R[RwR5(RR¨RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_flush_and_writeðs 
 
cCstj|ƒtj|ƒdS(N(RøR$R1(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR$üs cCs0d„}|j|ƒd„}|j|ƒdS(NcSs|jdƒdS(Ni(R(RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR—scSs=|jƒ}|jddƒ|jdƒ|j|dƒdS(Niÿÿÿÿii(R$R#R(RÕR!((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR—s  (R@(RR—((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writes_and_peeks         cCsd„}|j|ƒdS(NcSs!|jddƒ|jdƒdS(Niÿÿÿÿi(R#R5(RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_read s(R@(RRž((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writes_and_reads s    cCsd„}|j|ƒdS(NcSs!|jddƒ|jdƒdS(Niÿÿÿÿi(R#Rý(RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_read1s(R@(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writes_and_read1ss    cCsd„}|j|ƒdS(NcSs'|jddƒ|jtdƒƒdS(Niÿÿÿÿi(R#R+R\(RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRžs(R@(RRž((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_writes_and_readintoss    cCsêxãddgD]Õ}|jdƒ}|j|dƒ}|j|jdƒdƒ|j|jƒdƒ|jd|ƒ|j|jƒ|dƒ|jƒ|j|jƒ|dƒ|jƒ}|j|dd|dd|ƒq WdS(    NiitAi
itBi    t
AAAAAAAAAA(RvRÑR[R5R$RRŠRw(Rtoverwrite_sizeR¨RÕRJ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_write_after_readaheads
     cCsÑd„}d}x»tdt|ƒƒD]¤}x›t|t|ƒƒD]„}|j|ƒ}|j|dƒ}||||ƒ|jƒt|ƒ}d||<d||<|j|jƒ|d||fƒqAWq%WdS(NcSs[||kst‚|j|ƒ|j||ƒ|jdƒ|j|ƒ|jdƒdS(Nss(RfR#R5R(RÕtpos1tpos2((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytmutate3s    s€‚ƒ„iidiiufailed result for i=%d, j=%d(RŸRRvRÑRŠR\R[Rw(RRªRRtjR¨RÕtexpected((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_write_rewind_write1s     
 
 
cCsƒ|jdƒ}|j|dƒ}|j|jdƒdƒ|j|jƒdƒ|j|jdƒdƒ|j|jƒdƒdS(    NR£i
iditAAtBBiR¥(RvRÑR[R5R,R(RR¨RÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt!test_truncate_after_read_or_writeKs cCstj|ƒtj|ƒdS(N(RøR%R1(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR%Ss c Cs‘|jdƒê}|j|dƒÏ}|jdƒ|j|jdƒdƒ|jdƒ|j|jdƒdƒ|jdƒtdƒ}|j|ƒ|j|d    ƒ|jd
ƒ|j|jdƒd ƒ|j    ƒ|j|j
ƒd ƒWdQXWdQX|jd ƒ}|j|dƒf}|j|jdƒdƒ|jdƒ|j|jdƒdƒ|j    ƒ|j|j
ƒdƒWdQXWdQXdS(Ntabcdefghidt1iRt2R¾t3R t4RZt1b2d3f4hR½R¡RÁta2c( RvRÑRR[R5RýR\R+RRŠRw(RR¨R R'((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_interleaved_read_writeWs*      
" 
c Cs½|jdƒ¨}|j|ƒ}|jdƒ|j|jƒdƒ|jdƒ|j|jƒdƒ|jdƒ|j|jƒdƒ|jƒ|j|jƒdƒWdQXWdQXdS(    Ns
ab
cdef
g
R²sb
R³sdef
R´s
s
1b
2def
3
(RvRÑRR[RjRŠRw(RR¨R ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_interleaved_readline_writeps   
(R-R.RR]RùRŠRR“R”R–R˜RœR$RRŸR¡R¢R§R­R°R%R¸R¹(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR‚Ÿs*                                                                        tCBufferedRandomTestcBs,eZejZd„Zd„Zd„ZRS(cCsctj|ƒtjdkr_|jƒ}|j|ƒ}|jttt    f|j
|tjƒndS(Niÿÿÿ( R‚RùRzR´R2RÑR]R·R*ROR(RRÄRÕ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRùs   cCstj|ƒtj|ƒdS(N(R)R®Rg(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR®‹s c    Cs9|jtdƒ!|jtjƒdddƒWdQXdS(NuBufferedRandomi(R-R^RÑRRv(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR.s(R-R.RtBufferedRandomRÑRùR®R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRº}s        
   tPyBufferedRandomTestcBseZejZRS((R-R.RSR»RÑ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR¼•stStatefulIncrementalDecodercBsheZdZdd„Zd„Zd„Zd„Zd„Zed„Z    d„Z
eZ e d    „ƒZ RS(
uœ
    For testing seek/tell behavior with a stateful, buffering decoder.
 
    Input is a sequence of words.  Words may be fixed-length (length set
    by input) or variable-length (period-terminated).  In variable-length
    mode, extra periods are ignored.  Possible words are:
      - 'i' followed by a number sets the input length, I (maximum 99).
        When I is set to 0, words are space-terminated.
      - 'o' followed by a number sets the output length, O (maximum 99).
      - Any other word is converted into a word followed by a period on
        the output.  The output word consists of the input word truncated
        or padded out with hyphens to make its length equal to O.  If O
        is 0, the word is output verbatim without truncating or padding.
    I and O are initially set to 1.  When I changes, any buffered input is
    re-scanned according to the new I.  EOF also terminates the last word.
    ustrictcCs!tjj||ƒ|jƒdS(N(tcodecstIncrementalDecoderRtreset(RR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR¶scCsdt|ƒS(Nu<SID %x>(tid(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt__repr__ºscCs"d|_d|_tƒ|_dS(Ni(RtoR\R§(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÀ½s        cCs6|jdA|jdA}}t|jƒ|d|fS(Niid(RRÃRR§(RRRÃ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytgetstateÂscCsO|\}}t|ƒ|_t|dƒ\}}|dA|dA|_|_dS(Nidi(R\R§tdivmodRRÃ(RtstateR§RRRÃ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytsetstateÆs cCsÅd}x–|D]Ž}|jdkr`|dkrM|jr]||jƒ7}q]q›|jj|ƒq |jj|ƒt|jƒ|jkr ||jƒ7}q q W|rÁ|jrÁ||jƒ7}n|S(Nuiu.(RR§t process_wordRR(RtinputtfinaltoutputR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytdecodeÌs      cCsöd}|jdtdƒkrGtdt|jdp8dƒƒ|_nŸ|jdtdƒkrˆtdt|jdpydƒƒ|_n^|jjdƒ}t|ƒ|jkrÃ|d|j7}n|jrÜ||j }n|d    7}tƒ|_|S(
Nuiuiiciuouasciiu-u.(    R§tordR<tintRRÃRÌRR\(RRË((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÈÝs((    
 cCs_|jr[|dkr[tjdƒ}tjddd|jddddddddd    |ƒSdS(
Nu test_decoderulatin-1RætencodeRÌtincrementalencodert streamreadert streamwritertincrementaldecoder(t codecEnabledR¾tlookupt    CodecInfoRÏR&(tclsRætlatin1((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytlookupTestDecoderïs     (R-R.R/RRÂRÀRÄRÇRpRÌRÈRÔt classmethodRÙ(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR½¤s                      tStatefulIncrementalDecoderTestc
Bs•eZdZdedfdedfdedfdedfded    fd
ed fd ed dddddddddfgZd„ZRS(uB
    Make sure the StatefulIncrementalDecoder actually works.
    R ua.b.c.d.toiabcduabcd.s oi...abcd...si.o6.x.xyz.toolongtofit.ux-----.xyz---.toolon.s
i.i2.o6xyzuxy----.z-----.si.o3.i6.abcdefghijklmnopu abc.ghi.mno.s;i.o29.a.b.cde.o15.abcdefghijabcdefghij.i3.a.b.c.d.ei00k.l.mua----------------------------.ub----------------------------.ucde--------------------------.uabcdefghijabcde.ua.b------------.u.c.------------.ud.e------------.uk--------------.ul--------------.um--------------.cCs„x?|jD]4\}}}tƒ}|j|j||ƒ|ƒq
Wtƒ}|j|jdƒdƒ|j|jddƒdƒdS(NRÜuR3iuabcd.(t
test_casesR½R[RÌ(RRÉteofRËR¾((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_decoders          (R-R.R/RpRRÝRß(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÛþs          # tTextIOWrapperTestcBs¦eZd„Zd„Zd„Zd„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„Zd„Zd„Zd„Zd„Zd„Z d„Z!d „Z"d!„Z#d"„Z$d#„Z%d$„Z&d%„Z'e(j)e*d&ƒd'„ƒZ+d(„Z,d)„Z-d*„Z.d+„Z/d,„Z0RS(-cCs/d|_djdƒ|_tjtjƒdS(NsAAA
BBB CCC
DDD
EEE
sAAA
BBB
CCC
DDD
EEE
uascii(ttestdataRÌt
normalizedRURVRW(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRX+s    cCstjtjƒdS(N(RURVRW(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRY0scCs|jdƒ}|j|dƒ}|j|ƒ}|j|ddddƒ|j|jdƒ|j|jtƒ|j|dddtƒ|j|jdƒ|j|jtƒ|jd    |j    ƒƒ|j
t |j|dd
ƒ|j
t |j|dd ƒdS( Nsé
 
ièRulatin1tnewlineu
uutf8tline_bufferingué
i*uxyzzy( RvR/t TextIOWrapperRR[RRäRpRRjR]R^RO(RtrRR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRù3scCs¬|jƒ}|j|ƒ}|j|ƒ}|j|jƒ|ƒ|j|ddƒ}|jdƒ|j|jƒƒ|jƒ|j|jƒdƒ|j    t
|jƒdS(NRuasciiuhowdythowdy( RvRjRåRÒRÓRRìRwR[R]RO(RRæRR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÔAs  
cCs¬|jdjdƒƒ}|j|ƒ}|j|ddƒ}|jj}|jt|ƒd|ƒd|_|jt|ƒd|ƒd|_|jt|ƒd|ƒdS(    Nuhellouutf-8Ru#<%s.TextIOWrapper encoding='utf-8'>udummyu1<%s.TextIOWrapper name=u'dummy' encoding='utf-8'>Räu0<%s.TextIOWrapper name='dummy' encoding='utf-8'>(RvRÏR/RåR.R[RåRæ(RR¨RR#tmodname((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRèNs           cCs¦|jƒ}|j|dƒ}|j|dddtƒ}|jdƒ|j|jƒdƒ|jdƒ|j|jƒdƒ|jd    ƒ|j|jƒd
ƒdS( NièRãu
RäuXR3uY
ZsXY
ZuA BsXY
ZA B(RvRjRåRRR[Rw(RRæRR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_line_buffering\s    cCsm|jƒ}|j|ddƒ}|j|jdƒ|j|ƒ}|j|jdk    ƒtj|jƒdS(NRuutf8(RvRåR[RR„R&R¾RÕ(RRR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_encodinggs  cCsø|jdƒ}|j|ddƒ}|jt|jƒ|jdƒ}|j|ddddƒ}|jt|jƒ|jdƒ}|j|ddddƒ}|j|jƒdƒ|jdƒ}|j|ddddƒ}|j|jƒd    ƒdS(
Nsabc
ÿ
RuasciiRustrictuignoreuabc
 
ureplaceuabc
�
(RvRåR]t UnicodeErrorR5R[(RRR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_encoding_errors_readingpscCs,|jƒ}|j|ddƒ}|jt|jdƒ|jƒ}|j|ddddƒ}|jt|jdƒ|jƒ}|j|ddddddƒ}|jd    ƒ|jƒ|j|jƒd
ƒ|jƒ}|j|dddd ddƒ}|jd    ƒ|jƒ|j|jƒd ƒdS( NRuasciiuÿRustrictuignoreRãu
u    abcÿdef
sabcdef
ureplacesabc?def
(RvRåR]RëRRŠR[Rw(RRR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_encoding_errors_writing‚s$        
      
c
Csédddddg}ddddddggd|gd    ddd
dggd d d ggddddggg}d}xj|D]b}tdj|ƒj|ƒƒ}x;ttfD]-}x$tddƒD]}x
|D]\}}    |j|j|ƒ|ƒ}
|j    |
d|d|ƒ} |r}g} xetry| j
dƒ} | dkrIPn|j t | ƒdƒ| j | | jƒƒq$Wn t| ƒ} x-t| |    ƒD]\}}|j ||ƒq™W|j t | ƒt |    ƒƒqÓWqÆWq°WqWdS( Nuunix
u    windows
uos9 ulast
unonluwindows
uos9
uu
u    os9 last
u
uunix
windows
u os9 last
nonlu u unix
windows u
os9 u    last
nonluutf-8ulatin-1uutf-16u    utf-16-leu    utf-16-beuutf-32u    utf-32-leu    utf-32-beii
RãRi(uutf-8ulatin-1uutf-16u    utf-16-leu    utf-16-beuutf-32u    utf-32-leu    utf-32-be(R&RRIRÏRpRRŸR/RvRåR5R[RRRjRtzip(Rt input_linesRt    encodingsRR)tdo_readsR‚Rãt    exp_linesRÕttextiot    got_linestc2tgot_linetexp_line((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_newlinesšs:               c
Cs#d}|jddƒjddƒ}xød|jdƒjtƒfd|jdƒjtƒfddd    d
d d gfd dd d gfddddddgfgD]x\}}|j|ƒ}|j|ddd|ƒ}|j|jƒ|ƒ|j    dƒ|j|j
ƒdj |ƒƒq£WdS(NsAAA
BBB
CCC DDD EEE
FFF
GGGs
s
s uasciiuu
uAAA
uBBB
u CCC DDD EEE
uFFF
uGGGu
uAAA
BBB
CCC DDD EEE
u u AAA
BBB
CCC uDDD uEEE u
FFF u
GGGRRãi( treplaceR&RÌRàRRvRåR[RR#R5RI(RRáRâRãR¬R'ttxt((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_newlines_inputÄs( cCsäidd6dd6dd6dd6}d|tjfgt|jƒƒ}x•|D]\}}|jƒ}|j|dd    d
|ƒ}|jd ƒ|jd ƒ|jd ƒ|jƒ|j    |j
t ƒ|j    |j ƒ|ƒqOWdS(NsAAA
BBB
CCC
X Y
Zuu
sAAA BBB CCC X Y Zu sAAA
BBB
CCC
X Y
Zu
RuasciiRãuAAA
BuBB
CCC
uX Y
Z( R&R¯tlineseptsortedtitemsRvRåRRŠR[R<RpRw(RttestdictRRãR¬R'Rú((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_newlines_outputÔs
&    
cs}g‰|j‰dˆf‡‡fd†ƒY}|ƒ}|j|ddƒ}|jdƒ~tjƒ|jdgˆƒdS(Nt    MyBytesIOcseZ‡‡fd†ZRS(cs$ˆj|jƒƒˆj|ƒdS(N(RRwR>(R(R’R!(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR>ês(R-R.R>((R’R!(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRésRuasciiuabcR½(RvRåRRURŒR[(RRRR#((R’R!sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRæs         
cspg‰d|jf‡‡fd†ƒY‰|jƒ}ˆ|ddƒ}~tjƒ|jˆdddgƒdS(NtMyTextIOcs>eZ‡‡fd†Z‡‡fd†Z‡‡fd†ZRS(csBˆjdƒytˆ|ƒj}Wntk
r6nX|ƒdS(Ni(RRCR‡Rˆ(RR (RR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR‡÷s   cs$ˆjdƒtˆ|ƒjƒdS(Ni(RRCR>(R(RR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR>ÿs cs$ˆjdƒtˆ|ƒjƒdS(Ni(RRCRŠ(R(RR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRŠs (R-R.R‡R>RŠ((RR‰(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRösRuasciiiii(RåRvRURŒR[(RRR#((RR‰sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÚôs" 
cs³ˆjƒ‰‡‡fd†}tjdƒ}ˆjt|ƒWdQX|jƒjƒ}|r¯ˆjt|j    ƒƒdƒˆj
|j dƒ|ƒˆj
|j dƒ|ƒndS(NcsˆjˆƒjdS(N(RåRÝ((RÄR(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR sustderriuException IOError: u ignored( R;RURÞR]RˆRwRßR[RRàR„RáRâ(RR RJ((RÄRsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRã s cCs(x!dD]}xdD]}|jtjdd|ƒ}||_|j|jdƒdƒ|jƒ|jtjdd|ƒ}||_|j|jƒdƒ|j|jƒdƒ|jƒ}|j|j    dƒdƒ|j|jdƒdƒ|j    dƒ|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jƒdƒ|j|jƒ|ƒ|j|j    dƒdƒ|j|j    ddƒ|ƒ|j|jdƒdƒ|j|j    |ƒ|ƒ|j|jƒdƒ|j dƒr|j ||ƒn|jƒqWqWdS(Niiiiiiiiii i!i?i@iAuasciiulatin1uutf8uw+Ruabcur+iuabucuudefuutf(iiiiiiiiii i!i?i@iA(uasciiulatin1uutf8( R    RURWR R[RR>R$R5R#R&Rátmulti_line_test(Rt    chunksizetencR tcookie((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_basic_ios6      
      c Cs|jdƒ|jƒd}g}xdD]w}g}x/t|ƒD]!}|j||t|ƒƒqCWdj|ƒd}|j|jƒ|fƒ|j|ƒq*W|jdƒg}    x?trù|jƒ}
|j    ƒ}|sãPn|    j|
|fƒq»W|j
|    |ƒdS(Niu    sÿ࿿￿iiiiiiii i!i>i?i@iAièuu
(iiiiiiiii i!i>i?i@iAiè( R#R,RŸRRRIR$RRRjR[( RR RtsampletwlinesRõtcharsRtlinetrlinesR!((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR9s( 
        cCs9|jtjdddƒ}|jƒ}|jdƒ|jƒ}|jdƒ|jƒ}|jdƒ|j|jƒ|ƒ|j|jƒdƒ|j|jƒ|ƒ|j|jƒdƒ|j|jƒ|ƒ|jdƒx1|D])}|j|dƒ|jt    |jƒqèW|j|jƒ|ƒ|j
ƒdS(Nuw+Ruutf8uÿ
i( R    RURWR$RR#R[RjR]R=R>(RR tp0tp1tp2R ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_tellingOs$        c
Cstƒ}|d}d|}t|jdƒƒ}|jt|ƒt|ƒƒd}t|jdƒƒ}||}|jtjdƒ}|j|dƒ|j    ƒ|jtjdddƒ}|j
|ƒ}    |j|    |j dƒƒ|j|j ƒ|ƒ|j|j ƒ|ƒdS(    Niuauutf-8u袈
uwburRuascii(R RRÏR[RR    RURWRR>R5RÌR$Rj(
Rt
chunk_sizet prefix_sizetu_prefixtprefixtu_suffixtsuffixR R RJ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_seekingcs     
 
 
 
cCsud}|jtjdƒ}|j|ƒ|jƒ|jtjdddƒ}|jd|_|jƒ|jƒdS(Nsà¿¿
uwburRuutf-8i(R    RURWRR>R RjR$(RR)R ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_seeking_toous 
    
cs¶d‰d‡‡fd†}dt_zx$tjD]\}}}||ƒq1WxStjD]H\}}}ˆt|ƒd}d|}|d}||||ƒqXWWddt_XdS(Ni€icsEˆjtjdƒ}|j|ƒ|jƒˆjtjddƒ}ˆ|_|jƒ}|jƒxÛt|t|ƒdƒD]À}x·ddt|ƒ|gD]œ}ˆjtjddƒ}ˆj    |j|ƒ|| ƒ|j
ƒ}ˆj    |j|ƒ||||!ƒ|j |ƒˆj    |jƒ||ƒ|jƒqWq}WdS(uTell/seek to various points within a data stream and ensure
            that the decoded data returned by read() is consistent.uwbRu test_decoderiiN( R    RURWRR>R R5RŸRR[R$R#(R)tmin_posR tdecodedRR«R(t
CHUNK_SIZER(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_seek_and_tell_with_data†s  
     
   $ iit.(R½RÔRÛRÝR(RRRÉt_toffsetRR((RRsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRs    
 
cCsÍd}d }xº|D]²}|jƒ}|j|d|ƒ}|j|ƒ|j|ƒ|jd    ƒ|j|jƒ|d
ƒ|jd    ƒ|j|jƒ|d
ƒ|j|jƒ|d
j|ƒƒqWdS( Nu
1234567890uutf-16u    utf-16-leu    utf-16-beuutf-32u    utf-32-leu    utf-32-beRii(uutf-16u    utf-16-leu    utf-16-beuutf-32u    utf-32-leu    utf-32-be(RvRåRR#R[R5RwRÏ(RR)RRR'R ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_encoded_writes°s"      cCsBd|jfd„ƒY}|j|ƒƒ}|jt|jƒdS(Nt
UnReadablecBseZd„ZRS(cSstS(N(Rp(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÆs(R-R.R(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR!Ås(RvRåR]R=R5(RR!Rú((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_unreadableÄscCsb|j|jdƒƒ}d}x-trM|jdƒ}|s@Pn||7}q!W|j|dƒdS(NsAA
BBuiuAA
BB(RåRvRR5R[(RRútreadsRÁ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_read_one_by_oneËs    cCs–|j|jdƒƒ}|j|jƒdddgƒ|jdƒ|j|jdƒdddgƒ|jdƒ|j|jdƒddgƒdS(NsAA
BB
CCuAA
uBB
uCCii(RåRvR[RR#R&(RRú((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRÕs  " cCsr|j|jdddƒƒ}d}x-trU|jdƒ}|sHPn||7}q)W|j|dddƒdS(NR£is
Bui€uAu
B(RåRvRR5R[(RRúR#RÁ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_read_by_chunkÞs     cCs[dddg}|jƒ}|j|ƒ}|j|ƒ|jƒ|j|jƒdƒdS(NuabucduefRS(RvRåRkRŠR[Rw(RR!R'Rú((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRZés   
cCsatdddgƒ}|jƒ}|j|ƒ}|j|ƒ|jƒ|j|jƒdƒdS(NuabucduefRS(RRvRåRkRŠR[Rw(RR!R'Rú((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR[ñs   
cCsd|j|jƒƒ}|jt|jdddgƒ|jt|jdƒ|jt|jdƒdS(NiiiR½(RåRvR]R^RkR&(RRú((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR\ùscCsn|j|j|jƒddƒ}d}x-trV|jdƒ}|sIPn||7}q*W|j||jƒdS(NRuasciiui(RåRvRáRR5R[Râ(RRúR#RÁ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_issue1395_1ÿs!    cCsw|j|j|jƒddƒ}d|_d}x-tr_|jdƒ}|sRPn||7}q3W|j||jƒdS(NRuasciiiu(RåRvRáR RR5R[Râ(RRúR#RÁ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_issue1395_2    s!        cCs“|j|j|jƒddƒ}d|_|jdƒ}||jdƒ7}||jƒ7}||jƒ7}||jƒ7}|j||jƒdS(NRuasciii(RåRvRáR R5RjR[Râ(RRúR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_issue1395_3    s!    cCs`|j|j|jƒddƒ}d|_|jdƒ}||jƒ7}|j||jƒdS(NRuasciii(RåRvRáR R5R[Râ(RRúR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_issue1395_4"    s
!    cCs||j|j|jƒddƒ}d|_|jdƒ}|jƒ}|jdƒ|j|ƒ|j|jdƒdƒdS(NRuasciiiiuBBB
(RåRvRáR R5R$R#R[(RRúR#R!((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_issue1395_5*    s!       cCsG|j|jƒ}|j|ddƒ}|j|jƒ|jƒƒdS(NRuascii(RvRáRåR[R (RR§Rú((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_issue22824    sc Csútj}xêd D]â}|j|dd|ƒ }|jdƒ|jƒ}WdQX|j|dƒ&}|j|jƒdj|ƒƒWdQX|j|dd|ƒ}|jd    ƒWdQX|j|dƒ&}|j|jƒd
j|ƒƒWdQXqWdS( Nu    utf-8-siguutf-16uutf-32uwRuaaaurbuauxxxuaaaxxx(u    utf-8-siguutf-16uutf-32(RURWR    RR$R[R5RÏ(RtfilenametcharsetR R!((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_append_bom:    s      %c Csçtj}x×d D]Ï}|j|dd|ƒ }|jdƒ|jƒ}WdQX|j|dd|ƒ;}|j|ƒ|jdƒ|jd    ƒ|jd
ƒWdQX|j|d ƒ&}|j|jƒd j|ƒƒWdQXqWdS(Nu    utf-8-siguutf-16uutf-32uwRuaaaur+uzzziubbburbubbbzzz(u    utf-8-siguutf-16uutf-32(    RURWR    RR$R#R[R5RÏ(RR,R-R R!((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test_seek_bomI    s         cCsl|jtjdƒ}|j|jdƒWdQX|jtjdddƒ}|j|jdƒWdQXdS(NuwustrictRureplace(R    RURWR[R(RR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_errors_propertyX    su!Threading required for this test.c s%tjƒ‰|jtjdddƒ‰‡‡fd†‰gtdƒD]$}tjd|‡fd†ƒ^qI}x|D]}|jƒqzWtj    dƒˆj
ƒx|D]}|j ƒq¬WWdQX|jtjƒG‰ˆj ƒ}x1tdƒD]#}|j |jd    |ƒdƒqôWWdQXdS(
NuwRoics%d|}ˆjƒˆj|ƒdS(Nu Thread%03d
(twaitR(R*ttext(teventR (sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytrunc    s
 
iRcs
ˆ|ƒS(N((R*(R4(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRAg    sg{®Gáz”?u Thread%03d
(RtEventR    RURWRŸRRRRtsetRIR5R[R(RRaR"R#tcontentR*((R3R R4sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_threads_write^    s 4  
  cCsZ|j|j|jƒddƒ}d„}||_|jt|jƒ|j|jƒdS(NRuasciicSs tƒ‚dS(N(R=(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRºv    s(    RåRvRáRŠR]R=R>R„R<(RRúRº((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR»t    s
!        cCsV|j|j|jƒddƒ}|jƒ|jƒ|jƒ|jt|jƒdS(NRuascii(RåRvRáR>R]RORŠ(RRú((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR¼|    s
!
 
 
cCs\|j|j|jƒddƒ}|j|jƒ}|jttfƒ||_WdQXdS(NRuascii(RåRvRáR]RˆR^R§(RRúR'((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRïƒ    s!csÚdˆjf‡fd†ƒY}dˆjf‡fd†ƒY}ˆj|dƒƒ}ˆjtƒ|jdƒWdQXˆj|dƒƒ}ˆjtƒ|jƒWdQXˆj|dƒƒ}ˆj|jƒdƒdS(NtNonbytesStreamcseZˆjjZRS((R-R.tStringIOR5Rý((R(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR9Œ    scseZˆjjZRS((R-R.R:R5Rý((R(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR9Ž    suai(R:Råt maybeRaisesR^R5RjR[(RR9R#((RsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_read_nonbytes‰    scCsÓ|j|jdƒddddƒ}|jtƒ|jdƒWdQX|j|jdƒddddƒ}|jtƒ|jƒWdQX|j|jdƒddddƒ}|jtƒ|jƒWdQXdS(NtaaaaaaRãu
Ru quopri_codeci(RåRvR;R^R5Rj(RR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_illegal_decoder™    s            (1R-R.RXRYRùRÔRèRéRêRìRíRøRûRRRÚRãRRRRRRR R"R$RR%RZR[R\R&R'R(R)R*R+R.R/R0RÎR'RR8R»R¼RïR<R>(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRà)sX                                            *                                            /            
                                           
                               tCTextIOWrapperTestcBs/eZd„Zd„Zd„ZejjZRS(cCs’|jdƒ}|j|dƒ}|j|ƒ}|jt|j|ddƒ|jt|jƒ|jt|j|ddƒ|jt|jƒdS(Nsé
 
ièRãi*uxyzzy(RvR/RåR]R^RROR5(RRæRR#((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR+¬    scCs¼tjtjdƒ}|j|ƒ}|j|ddƒ}|jdƒ||_tj    |ƒ}~tj
ƒ|j |ƒdk|ƒ|j tjdƒ}|j|jƒdƒWdQXdS(NuwbRuasciiu456defurbt456def(RR‹RURWRjRåRRaR«R¬RŒR„R&R    R[R5(RRÄRR#R­R ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR®µ    s     
cCsxŒtdƒD]~}|j|jƒ|jƒƒ}|j|ddƒ}|j|jƒ|jƒƒ}|j|ddƒ}||_||_q WtjƒdS(NièRuascii(RŸR€R2RåtbuddyRURŒ(RRtb1tt1tb2tt2((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt!test_rwpair_cleared_before_textioÅ    s     (    R-R.R+R®RFRÎtTestCaseR]R;(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR?ª    s                tPyTextIOWrapperTestcBseZejd„ƒZRS(cos    dVdS(N((RRëtkwds((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR;×    s(R-R.t
contextlibtcontextmanagerR;(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRHÖ    stIncrementalNewlineDecoderTestcBs,eZd„Zd„Zd„Zd„ZRS(css‡‡fd†}|ddƒ|ddƒ|ddƒ|ddƒ|ddƒ|ddƒ|ddƒ|ddƒˆjtˆjdd    tƒˆjƒ|d
d ƒ|d dƒ|dd d    tƒ|d d d    tƒ|d dƒ|d dƒ|ddƒ|d dƒ|d d ƒ|ddƒ|ddƒ|ddƒ|d
d ƒ|ddƒ|d
d ƒdS(NcsUˆjƒ}ˆjˆj|||ƒˆj|ƒˆjˆj|||ƒdS(N(RÄR[RÌRÇ(RRJtkwargsRÆ(tdecoderR(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt _check_decodeà    s  s袈u袈sèus¢sˆR3RÊs
u
s R¡u
as
u
 
s
as袈
u袈
s袈 (R]tUnicodeDecodeErrorRÌRRÀ(RRNRO((RNRsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytcheck_newline_decoding_utf8Þ    s4        
            csfg‰|dk    r<tj|ƒƒ‰‡‡‡fd†}nd‰‡‡fd†}|jˆjdƒ|dƒ|jˆjdƒ|dƒ|jˆjd ƒ|dƒ|jˆjd ƒ|dƒ|jˆjdƒ|dƒ|jd
jˆƒd ƒˆjƒd}ˆdk    r6ˆjƒˆj|ƒ}n|jˆj|ƒdƒ|jˆjdƒdS(Ncs4x-ˆj|ƒD]}ˆjˆj|ƒƒqWdS(N(RÏRRÌ(RJR(RNtencodertresult(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_decode_bytewise
scs+x$|D]}ˆjˆj|ƒƒqWdS(N(RRÌ(RJRÁ(RNRS(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRT
s uabc
u
u
abcu
uabc uabcu uuabc
 
abcabc
abcabc(u
u
(u
u
(u u
u
(    R&R¾tgetincrementalencoderR[tnewlinesRIRÀRÏRÌ(RRNRRTRÉ((RNRRRSsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytcheck_newline_decoding
s0 
 
 
 
 
 
 
c    CsŒd
}xK|D]C}|o(tj|ƒƒ}|j|d    tƒ}|j||ƒq Wtjdƒƒ}|j|d    tƒ}|j|ƒdS( Nuutf-8ulatin-1uutf-16u    utf-16-leu    utf-16-beuutf-32u    utf-32-leu    utf-32-bet    translate(    Nuutf-8ulatin-1uutf-16u    utf-16-leu    utf-16-beuutf-32u    utf-32-leu    utf-32-be(R&R¾tgetincrementaldecodertIncrementalNewlineDecoderRRWRQ(RRðRRN((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_newline_decoder)
s csQ‡fd†}ˆjddtƒ}||ƒˆjddtƒ}||ƒdS(Ncsoˆj|jdƒˆj|jdƒdƒˆj|jdƒˆj|jdƒdƒˆj|jdƒdS(Nuഀu਀(R[RVR&RÌ(tdec(R(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_check;
s
RX(RZR&RpR(RR]R\((RsT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_newline_bytes9
s
 
(R-R.RQRWR[R^(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRLÜ    s    *    !    tCIncrementalNewlineDecoderTestcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR_F
stPyIncrementalNewlineDecoderTestcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR`I
st
MiscIOTestcBs¡eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
e j e d    ƒd
„ƒZe j e d    ƒd „ƒZd „Zd „ZRS(cCstjtjƒdS(N(RURVRW(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRYQ
scCs½x¶|jjD]¨}t|j|dƒ}|j|dk    |ƒ|dkrPq q d|jƒksn|dkrŠ|jt|tƒ|ƒq |jdƒs |jt||j    ƒƒq q WdS(NuopenuerroruUnsupportedOperationuSEEK_(
Rt__all__tgetattrR&R„tlowert
issubclassRRáR”(RRæRË((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt test___all__T
s cCsÏ|jtjdddƒ}|j|jdƒ|jƒ|jtjdƒ}|j|jtjƒ|j|jjtjƒ|j|jjjtjƒ|j|jdƒ|j|jjdƒ|j|jjjdƒ|jƒ|jtjdƒ}|j|jdƒ|j|jjdƒ|j|jjjdƒ|j|j    ƒddt
ƒ}|j|jdƒ|j|jjdƒ|j|j|j    ƒƒ|j|jj|j    ƒƒ|jƒ|jƒdS(    NuwbRoiuUurbuw+urb+R£( R    RURWR[RlR>RæR§R¨RRp(RR RÃ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_attributes_
s,
 
 
cCsÂx»idd6idd6idd6dd6idd6dd6idd6dd6idd6id    d6idd6dd6idd6dd6id    d6dd6id
d6id d6id
d6dd6id
d6dd6id d6dd6gD]Þ}|jtj|}|jƒ|jt|jƒ|jt|jƒ|jt|jƒ|jt|j    ƒt
|d ƒru|jt|j dƒn|jt|j ƒt
|d ƒr°|jt|j dƒnt
|dƒrÕ|jt|jƒnt
|dƒr|jt|jtdƒƒn|jt|jƒ|jt|jƒ|jt|jdƒ|jt|jƒ|jt|jƒ|jt|jd|dkrŠdndƒ|jt|jgƒ|jtt|ƒqÜWdS(Nuwumodeuwbiu    bufferingiiururbuw+uw+bupeekuread1iureadallureadintoubR3u(R    RURWR>R]RORŠRR}t__iter__thasattrRR5RýRR+R\RjRR#R$R,RRkR=(RRMR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_io_after_closez
sP
 
 
 
 
 
 
cCs |jt|jƒ|jt|jdƒ|jt|jddddƒ|jt|jdddƒ|jddƒ}|j|jdƒdtfd„ƒY}|dƒ}|jd|ƒ}||_||_t    j
|ƒ}~~t j ƒ|j |ƒdk|ƒdS(    NiiiiuitCcBseZRS((R-R.(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRk­
s(R]R^RQR&R[RPtunicodeRRÁR«R¬RURŒR„(RRRkRÁR­((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_blockingioerror¥
s         
cCs\|j|jtjƒ|j|jtjƒ|j|jtjƒ|j|jtjƒdS(N(tassertIsInstanceR”R½tABCMetaR–R˜Rš(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    test_abcs¸
sc    CsH|jtjdddƒS}|j||jƒ|j||jƒ|j||jƒ|j||jƒWdQX|jtjdƒS}|j||jƒ|j||jƒ|j||jƒ|j||jƒWdQX|jtjdƒS}|j||jƒ|j||jƒ|j||jƒ|j||jƒWdQXdS(NuwbRoiuw(    R    RURWRnR”R–tassertNotIsInstanceR˜Rš(Rt    abcmoduleR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_check_abc_inheritance¿
scCs|j|ƒdS(N(Rs(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_abc_inheritanceÐ
scCs|jtƒdS(N(RsR(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_abc_inheritance_officialÔ
sufcntl required for this testcCs|jdƒdS(Niii@(t_test_nonblock_pipe_write(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_nonblock_pipe_write_bigbufÙ
scCs|jdƒdS(Ni(Rv(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt!test_nonblock_pipe_write_smallbufÝ
scCsXtj|tjƒ}|j|dƒtj|tj|tjBƒ}|j|dƒdS(Niÿÿÿÿi(tfcntltF_GETFLtassertNotEqualtF_SETFLR¯t
O_NONBLOCKR[(RtfdtflagsRD((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt_set_non_blockingá
sc CsWg}g}tjƒ\}}|j|ƒ|j|ƒ|j|dddtd|ƒ}|j|dddtd|ƒ}||rxßdD]×}yVd    }    xItrét|    d
d gƒ|}
|j|
ƒ|j|
ƒ|    d 7}    q¡WWq|jk
re} |j    | j
d    t j ƒ|d | j  |d <|j|jƒƒd}
|j|
ƒ|j|
ƒqXqWxrtrÞy|jƒPWqm|jk
rÚ} |j    | j
d    t j ƒ|j    | j d    ƒ|j|jƒƒqmXqmW|t|jdƒ7}WdQXWdQXdj|ƒdj|ƒ}}|j||kƒ|j|jƒ|j|jƒdS(NRlurbR£Rouwbi'iIi–iiiaiiÿÿÿÿtBLOCKEDR3(i'iIi–(R¯tpipeR€R    RRRRRQR[RëterrnotEAGAINRPR5RŠtiterR&RIR„R<( RR‚tsenttreceivedRæRutrftwfR RtmsgR ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRvç
sJ  !!            
"(R-R.RYRfRgRjRmRpRsRtRuRÎR'RyRwRxR€Rv(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRaO
s                +                        t CMiscIOTestcBseZeZRS((R-R.R(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR‹ st PyMiscIOTestcBseZeZRS((R-R.RSR(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRŒ suntu%POSIX signals required for this test.t SignalsTestcBs×eZd„Zd„Zd„Zejedƒeje    j
dkdƒd„ƒƒZ d    „Z d
„Z d „Zd „Zd „Zd„Zd„Zd„Zd„Zejedƒd„ƒZd„Zd„ZRS(cCstjtj|jƒ|_dS(N(tsignaltSIGALRMtalarm_interrupttoldalrm(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRX! scCstjtj|jƒdS(N(RŽRR‘(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRY$ scCs dddS(Nii((Rtsigtframe((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR' su!Threading required for this test.ufreebsd5ufreebsd6ufreebsd7u'issue #12429: skip test on FreeBSD <= 7c     sEg‰‡‡fd†}tjd|ƒ}t|_tjƒ\‰}z¢|jj||}|jƒt    j
dƒ|j t |j |tjt|ƒdƒ|jƒˆjtjˆdƒƒ|jˆ|dd!|dd!gƒWdtj|ƒtjˆƒy|jƒWn+tk
r?}|jtjkr@‚q@nXXdS(uCheck that a partial write, when it gets interrupted, properly
        invokes the signal handler, and bubbles up the exception raised
        in the latter.cs#tjˆdƒ}ˆj|ƒdS(Ni(R¯R5R(RJ(Ræt read_results(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRž2 sRiiiN(RRRtdaemonR¯R‚RR    RRŽtalarmR]R€RRUt PIPE_MAX_SIZERRIRR5R[R>R=RƒtEBADF(    RtitemRt fdopen_kwargsRžR#RutwioR ((RæR”sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytcheck_interrupted_write* s*    
     "
(  cCs |jddddddƒdS(NRsRluwbRoi(Rœ(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt!test_interrupted_write_unbufferedU scCs|jddddƒdS(NRsRluwb(Rœ(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_interrupted_write_bufferedX scCs |jddddddƒdS(NuxyRsRluwRuascii(Rœ(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_interrupted_write_text[ sc     s(‡‡fd†}tjtj|ƒtjƒ\}}|jj||‰z½tjdƒ|jtt    fƒU}xKx+t
dƒD]}ˆj ˆƒˆj ƒq„Wtj |tˆƒdƒqwWdQX|j}t|t    ƒr|jt|ƒjdƒt|ƒƒnWdˆjƒtj|ƒXdS(NcsˆjˆƒdddS(Nii(R(Rë(R)R›(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyton_alarm_ s iidureentrant call(RŽRR¯R‚RR    R–R]R€t RuntimeErrorRŸRRŠR5RRêt
isinstanceR„tstrRáR>(    RR)RšR RæRutcmRtexc((R)R›sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytcheck_reentrant_write^ s"  #    ,
cCs|jdddƒdS(NRsRluwb(R¦(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_reentrant_write_bufferedx scCs|jdddddƒdS(NuxyRluwRuascii(R¦(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyttest_reentrant_write_text{ sc s¿tjƒ\}‰t|d<‡fd†}tjtj|ƒzU|jj||}tjˆdƒtjdƒ|j    ||j
dƒƒdƒWd|j ƒtj ˆƒtj |ƒXdS(uÇCheck that a buffered read, when it gets interrupted (either
        returning a partial result or EINTR), properly invokes the signal
        handler and retries if the latter returned successfully.uclosefdcstjˆdƒdS(Ntbar(R¯R(R’R“(Ru(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt alarm_handler„ stfooiiufoobarN( R¯R‚RpRŽRRR    RR–R[R5R>(RRÌRšRæRªtrio((RusT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytcheck_interrupted_read_retry~ s
 #
 cCs|jd„ddƒdS(NcSs |jdƒS(Nulatin1(RÌ(Ra((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRA– sRlurb(R­(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt%test_interrupterd_read_retry_buffered• scCs|jd„ddƒdS(NcSs|S(N((Ra((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRAš sRlur(R­(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt!test_interrupterd_read_retry_text™ sc     s…tjdƒ‰tj}tjƒ\‰}t|d<g‰t‰‡‡‡‡fd†}tjd|ƒ‰tˆ_    ‡fd†}‡fd†‰t
j
t
j |ƒz}|j j ||}t
jdƒ|j||j||ƒƒ|jƒt‰ˆjƒ|j|td„ˆDƒƒƒWd    t‰tj|ƒtjˆƒy|jƒWn+tk
r}|jtjkr€‚q€nXXd    S(
uÈCheck that a buffered write, when it gets interrupted (either
        returning a partial result or EINTR), properly invokes the signal
        handler and retries if the latter returned successfully.uselectuclosefdcs\xUˆsWxHˆˆjˆgggdƒdkrStjˆdƒ}ˆj|ƒq WqWdS(Ngð?ii(tselectR¯R5R(RJ(RæR”R°twrite_finished(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyRž­ s    (Rcs$tjtjˆƒtjdƒdS(Ni(RŽRR–(R’R“(talarm2(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytalarm1´ scsˆjƒdS(N(R(R’R“(R#(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR²· sicss|]}t|ƒVqdS(N(R(t.0Ra((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pys    <genexpr>Æ sN(RUt import_moduleR—R¯R‚RpRRRR•RŽRRR    R–R[RRŠRItsumR>R=RƒR˜(    RR™RšR RuRžR³R›R ((R²RæR”R°R#R±sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pytcheck_interrupted_write_retry s8    
     
 
$  cCs|jdddƒdS(NRaRluwb(R·(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt&test_interrupterd_write_retry_bufferedÔ scCs|jdddddƒdS(NuxRluwRulatin1(R·(R((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt"test_interrupterd_write_retry_text× s(ufreebsd5ufreebsd6ufreebsd7(R-R.RXRYRRÎR'RtskipIfRzR{RœRRžRŸR¦R§R¨R­R®R¯R·R¸R¹(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR s$            )                                    7    t CSignalsTestcBseZeZRS((R-R.R(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR»Û st PySignalsTestcBseZeZdZdZRS(N(R-R.RSRR&R§R¨(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyR¼Þ scs‰tttttttttt    t
t t t tttttf}ttttttf}tjdg}td„|Dƒƒ}td„|Dƒƒ}tƒ‰|j‡fd†|Dƒƒ|j‡fd†|Dƒƒtj|d<x’|D]Š}|j j!dƒr2xo|j"ƒD]\}}t#|||ƒqWqê|j j!dƒrêx-|j"ƒD]\}}t#|||ƒqQWqêqêWt$j%|ŒdS(    NuIncrementalNewlineDecodercss$|]}|tt|ƒfVqdS(N(RcR(R´Ræ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pys    <genexpr>ù scss$|]}|tt|ƒfVqdS(N(RcRS(R´Ræ((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pys    <genexpr>ú sc3s)|]}|jˆd|jfVqdS(uCN(R-(R´Ra(tglobs(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pys    <genexpr>ü sc3s)|]}|jˆd|jfVqdS(uPyN(R-(R´Ra(R½(sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pys    <genexpr>ý suopenuCuPy(&RÊRÍR)R0RgRkRRRºR¼RÛR_R`R?RHR‹RŒR»R¼R2R8RAR;RGRRRbtdicttglobalstupdateRSt OpenWrapperR-RáRþtsetattrRUt run_unittest(Rtmockst all_memberstc_io_nstpy_io_nsttestRæRË((R½sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt    test_mainç s6         u__main__(`R/t
__future__RRR¯RzRRžRRÎR«R½RŽRƒt    itertoolsRRt collectionsRRRÈRRURJR¾Rt_pyioRSRt ImportErrorR&Ryttypet __metaclass__t
py3k_bytesRR RR–R0R1R2R6R7R8R9R:R;R?R@RARvRERFRGRPRRRGRTRÊRÍRÐRðRøR)R0R1RgRkRlRRR‚RºR¼R¿R½tregisterRÙRÛRàR?RHRLR_R`RaR‹RŒRºRæRR»R¼RÉR-(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_io.pyt<module>s²               
 
        8
,ÿfƒ·/ú,vÞ    W+ÿÿƒ,jȼ        #