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
Q\¬Qc@sTddlZddlZddlZddlZddlZddlZddlmZddlmZddl    m
Z
m Z m Z m Z mZmZmZmZmZmZmZddl    mZddl    mZeejdƒƒZdefd    „ƒYZd
e fd „ƒYZd ejfd „ƒYZdefd„ƒYZdefd„ƒYZ defd„ƒYZ!defd„ƒYZ"idd6dd6d\d6d^d6Z#d„Z$de fd„ƒYZ%d efd!„ƒYZ&d"efd#„ƒYZ'd$efd%„ƒYZ(d&efd'„ƒYZ)d(efd)„ƒYZ*d*efd+„ƒYZ+d,efd-„ƒYZ,d.efd/„ƒYZ-d0efd1„ƒYZ.d2efd3„ƒYZ/d4efd5„ƒYZ0d6efd7„ƒYZ1d8efd9„ƒYZ2d:efd;„ƒYZ3d<efd=„ƒYZ4d>efd?„ƒYZ5d@efdA„ƒYZ6dBefdC„ƒYZ7dDefdE„ƒYZ8dFefdG„ƒYZ9dHefdI„ƒYZ:dJe:fdK„ƒYZ;dLe:fdM„ƒYZ<dNefdO„ƒYZ=dPZ>dQZ?dRZ@dSZAdTefdU„ƒYZBdVefdW„ƒYZCdXefdY„ƒYZDdZ„ZEeFd[krPeEƒndS(_iÿÿÿÿN(tStringIO(t test_support( t make_optiontOptiontTitledHelpFormattert OptionParsert OptionGrouptSUPPRESS_USAGEt OptionErrortOptionConflictErrortBadOptionErrortOptionValueErrortValues(t _match_abbrev(t
_parse_numttInterceptedErrorcBs#eZdddd„Zd„ZRS(cCs||_||_||_dS(N(t error_messaget exit_statust exit_message(tselfRRR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt__init__s        cCs|jp|jpdS(Nsintercepted error(RR(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt__str__&sN(t__name__t
__module__tNoneRR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRs tInterceptingOptionParsercBs eZddd„Zd„ZRS(icCstd|d|ƒ‚dS(NRR(R(Rtstatustmsg((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytexit*scCstd|ƒ‚dS(NR(R(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyterror-sN(RRRRR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR)stBaseTestcBsDeZd„Zd„Zd„Zddd„Zd„Zd„ZRS(cCsb|jj|ƒ\}}t|ƒ}|j||dtƒƒ|j||dtƒƒ||fS(sšAssert the options are what we expected when parsing arguments.
 
        Otherwise, fail with a nicely formatted message.
 
        Keyword arguments:
        args -- A list of arguments to parse with OptionParser.
        expected_opts -- The options expected.
        expected_positional_args -- The positional arguments expected.
 
        Returns the options and positional args for further testing.
        sJ
Options are %(optdict)s.
Should be %(expected_opts)s.
Args were %(args)s.sj
Positional arguments are %(positional_args)s.
Should be %(expected_positional_args)s.
Args were %(args)s.(tparsert
parse_argstvarst assertEqualtlocals(Rtargst expected_optstexpected_positional_argstoptionstpositional_argstoptdict((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt assertParseOK2s    cCsË|dkrd}n|dkr*i}ny|||ŽWnu|k
r²}t|ƒ}t|tƒr‘|j|j|ƒd|j|fƒn|j||d||fƒ|SX|jdt    ƒƒdS(s-
        Assert that the expected exception is raised when calling a
        function, and that the right error message is included with
        that exception.
 
        Arguments:
          func -- the function to call
          args -- positional arguments to `func`
          kwargs -- keyword arguments to `func`
          expected_exception -- exception that should be raised
          expected_message -- expected exception message (or pattern
            if a compiled regex object)
 
        Returns the exception raised for further testing.
        sLexpected exception message pattern:
/%s/
actual exception message:
'''%s'''
sHexpected exception message:
'''%s'''
actual exception message:
'''%s'''
snexpected exception %(expected_exception)s not raised
called %(func)r
with args %(args)r
and kwargs %(kwargs)r
N((
Rtstrt
isinstancetretypet
assertTruetsearchtpatternR#tfailR$(RtfuncR%tkwargstexpected_exceptiontexpected_messageterrtactual_message((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt assertRaisesPs"               cCsNy|jj|ƒWn&tk
r<}|j|j|ƒnX|jdƒdS(s‘
        Assert the parser fails with the expected message.  Caller
        must ensure that self.parser is an InterceptingOptionParser.
        sexpected parse failureN(R R!RR#Rt assertFalse(Rt cmdline_argstexpected_outputR7((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytassertParseFail‹s
ic    Cstj}t|ddƒ}yUz5tƒt_|rB|tj_n|jj|ƒWdtjjƒ}|t_XWnŽt    k
r}|j
t |ƒt j kdt |ƒƒ||kr×|jd|d|dƒn|j|j|ƒ|j|j|ƒnX|jdƒdS(s7Assert the parser prints the expected output on stdout.tencodingNs0expected output to be an ordinary string, not %rsexpected: 
'''
s'''
but got 
'''
s'''sexpected parser.exit()(tsyststdouttgetattrRRR>R R!tgetvalueRR/ttypettypest
StringTypeR2R#RRR:(    RR;R<texpected_statustexpected_errort save_stdoutR>toutputR7((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt assertOutput—s*      cGs|j||dt|ƒdS(s4Assert that TypeError is raised when executing func.N(R9Rt    TypeError(RR3R6R%((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytassertTypeError·scCs>|jƒ}||kr:|jd|d|dƒ‚ndS(Nshelp text failure; expected:
"s    "; got:
"s"
(t format_helptfailureException(RR t expected_helpt actual_help((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt
assertHelp»s  N(    RRR+R9R=RRJRLRQ(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR1s        ;         tTestOptionCheckscBsÔeZd„Zgid„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„ZRS(cCstdtƒ|_dS(Ntusage(RRR (R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytsetUpÊscCs|jt||t|ƒdS(N(R9RR(RR6R%R4((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytassertOptionErrorÍscCs|jtdƒdS(Ns+at least one option string must be supplied(RLR(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_opt_string_emptyÑs    cCs|jddgƒdS(Ns?invalid option string 'b': must be at least two characters longtb(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_opt_string_too_shortÕscCs|jddgƒdS(NsOinvalid short option string '--': must be of the form -x, (x any non-dash char)s--(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_opt_string_short_invalidÚscCs|jddgƒdS(NsJinvalid long option string '---': must start with --, followed by non-dashs---(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_opt_string_long_invalidàscCs(|jddgidd6dd6ƒdS(Ns.option -b: invalid keyword arguments: bar, foos-btfootbar(RUR(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_attr_invalidæscCs!|jddgidd6ƒdS(Ns option -b: invalid action: 'foo's-bR[taction(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_action_invalidëscCs>|jddgidd6ƒ|jddgitd6ƒdS(Ns%option -b: invalid option type: 'foo's-bR[RCs'option -b: invalid option type: 'tuple'(RUttuple(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_type_invalidðs cCs(|jddgidd6dd6ƒdS(Ns4option -b: must not supply a type for action 'count's-btcountR^tintRC(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_type_for_actionøscCs$|jdddgidd6ƒdS(Ns@option -b/--bad: must supply a list of choices for type 'choice's-bs--badtchoiceRC(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_choices_listýscCs>tdƒj}|jd|ddgidd6dd6ƒdS(    NRsBoption -b/--bad: choices must be a list of strings ('%s' supplied)s-bs--badReRCs bad choicestchoices(RCRRU(Rttypename((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_bad_choices_lists     cCs(|jddgidd6dd6ƒdS(Ns1option -b: must not supply choices for type 'int's-bRcRCtbadRg(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_choices_for_type scCs(|jddgidd6dd6ƒdS(Ns:option -b: 'const' must not be supplied for action 'store's-btstoreR^itconst(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_const_for_actionscCs(|jddgidd6dd6ƒdS(Ns:option -b: 'nargs' must not be supplied for action 'count's-bRbR^itnargs(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_nargs_for_actionscCs(|jddgidd6dd6ƒdS(Ns'option -b: callback not callable: 'foo's-btcallbackR^R[(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_callback_not_callablescCsdS(N((R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytdummy scCs2|jddgidd6|jd6dd6ƒdS(NsAoption -b: callback_args, if supplied, must be a tuple: not 'foo's-bRqR^R[t callback_args(RURs(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_callback_args_no_tuple#s
 
cCs2|jddgidd6|jd6dd6ƒdS(NsBoption -b: callback_kwargs, if supplied, must be a dict: not 'foo's-bRqR^R[tcallback_kwargs(RURs(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_callback_kwargs_no_dict+s
 
cCs(|jddgidd6dd6ƒdS(Ns<option -b: callback supplied ('foo') for non-callback options-bRlR^R[Rq(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_callback_for_action3scCs(|jddgidd6dd6ƒdS(Ns9option -b: callback_args supplied for non-callback options-bRlR^R[Rt(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_no_callback_args_for_action9scCs(|jddgidd6dd6ƒdS(Ns;option -b: callback_kwargs supplied for non-callback options-bRlR^R[Rv(RU(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt"test_no_callback_kwargs_for_action?s(RRRTRURVRXRYRZR]R_RaRdRfRiRkRnRpRrRsRuRwRxRyRz(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRRÉs,                                                                                tTestOptionParsercBskeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z RS( c    CsWtƒ|_|jjddddddddƒ|jjd    d
d dd ddƒdS( Ns-vs    --verboses-ns--noisyR^t
store_truetdesttverboses-qs--quiets--silentt store_false(RR t
add_option(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTFs
  cCs|j|jjddƒdS(Nsnot an Option instance: None(RLR R€R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_add_option_no_OptionMscCs |j|jjdddƒdS(Nsinvalid arguments(RLR R€R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt!test_add_option_invalid_argumentsQscCs~|jjdƒ}|j|tƒ|j|jddgƒ|j|jddgƒ|j|jdƒ|j|jdƒdS(Ns-vs-ns    --verboses--noisyR|R~(    R t
get_optiontassertIsInstanceRR#t _short_optst
_long_optsR^R}(Rtopt1((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_get_optionUs cCsz|jjdƒ}|jjdƒ}|jjdƒ}|jjdƒ}|j||kop|kop|knƒdS(Ns-vs    --verboses-ns--noisy(R RƒR/(RR‡topt2topt3topt4((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_get_option_equals]s
cCs6|j|jjdƒƒ|j|jjdƒƒdS(Ns-vs    --verbose(R/R t
has_option(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_has_optiondscCs|j|jjdƒdkƒ|j|jjdƒdkƒ|j|jjdƒdkƒ|j|jjdƒdkƒ|j|jjdƒƒ|j|jjdƒƒ|j|jjdƒƒ|j|jjdƒƒ|j|jjdƒƒ|j|jjdƒƒdS(Ns-vs    --verboses-ns--noisys-qs--silent(R/R RƒRR:R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytassertTrueremovedhscCs|jjdƒ|jƒdS(Ns-n(R t remove_optionR(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_remove_short_optvscCs|jjdƒ|jƒdS(Ns    --verbose(R RR(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_remove_long_optzscCs#|j|jjddtdƒdS(NR[sno such option 'foo'(sfoo(R9R RRt
ValueError(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_remove_nonexistent~scCsddg}tj|ƒ}tƒ}|jddƒ||_|jƒ~|j|tj|ƒƒdS(Ni*s-as    --aaarggh(R?t getrefcountRR€t    big_thingtdestroyR#(RR–trefcountR ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_refleak‚s            
( RRRTRR‚RˆRŒRŽRR‘R’R”R™(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR{Es                                        tTestOptionValuescBseZd„Zd„ZRS(cCsdS(N((R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT”scCsêtƒ}|jt|ƒiƒ|j|iƒ|j|idd6ƒ|j|dƒidd6dd6}td|ƒ}|jt|ƒ|ƒ|j||ƒ|j|idd6ƒ|j|iƒ|j|dƒ|j|gƒdS(NR\R[Ri*tbaztdefaults(R R#R"tassertNotEqual(Rtvaluestdict((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_basics—s    (RRRTR (((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRš“s    tTestTypeAliasescBs,eZd„Zd„Zd„Zd„ZRS(cCstƒ|_dS(N(RR (R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT©scCs9|jjdddƒ|j|jjdƒjdƒdS(Ns-sRCR,tstring(R R€R#RƒRC(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_str_aliases_string¬scCsn|jjddtƒ|j|jjdƒjdƒ|jjddtƒ|j|jjdƒjdƒdS(Ns-sRCR¢s-xRc(R R€R,R#RƒRCRc(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_new_type_object°scCst|jjddtjƒ|j|jjdƒjdƒ|jjddtjƒ|j|jjdƒjdƒdS(Ns-sRCR¢s-xRc(R R€RDRER#RƒRCtIntType(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_old_type_object¶s(RRRTR£R¤R¦(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR¡¨s            itsi<tmthitdcCsly8|djƒrt|ƒSt|d ƒt|dSWn-ttfk
rgtd||fƒ‚nXdS(Niÿÿÿÿsoption %s: invalid duration: %r(tisdigitRct _time_unitsR“t
IndexErrorR (toptiontopttvalue((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt_check_durationÀs
tDurationOptioncBs1eZejdZejejƒZeed<RS(tduration(R³(RRRtTYPEStcopyt TYPE_CHECKERR±(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR²Ês tTestDefaultValuescBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsãtƒ|_|jjdddtƒ|jjddddƒ|jjdd    d
dd ƒ|jjd d    d
ƒ|jjd ddƒ|jjdƒ|jjdddƒitd6d d6dd6dd6dd6dd6|_dS(Ns-vs    --verbosetdefaults-qs--quietR}R~s-nRCRci%s-ms-sR[s-ts-utnR¨R§tttu(RR R€tTrueRtexpected(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTÐs 
cCs |j|jjƒ|jƒdS(N(R#R tget_default_valuesR½(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_basic_defaultsàscCsW|jjddddƒ|jjidd6dd6ƒ|j|jjƒ|jƒdS(NR¹i*R¨iœÿÿÿ(R t set_defaultsR½tupdateR#R¾(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_mixed_defaults_postãscCsÖ|jjddddƒ|jjdddƒ|jjdƒ|jjidd6dd6ƒ|j|jjƒ|jƒ|jjdƒ|jjdddƒ|jjidd6ƒ|j|jjƒ|jƒdS(    Ntxtbarftytblahs-xR¸tfrobs-y(    R RÀR€R½RÁR#R¾RR(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_mixed_defaults_preèscCsít|j_|jjdddddƒ|jjdddddƒ|jjdd    ƒ|jjidd
6d d 6d d6ƒ|j|jjƒ|jƒ|jj    t
ƒ|jjidd
6dd 6d    d6ƒ|j|jjƒ|jƒdS(Ns-dRCR³R¸i,s-et6mR¹t42Rªihtei*( R²R t option_classR€RÀR½RÁR#R¾tset_process_default_valuestFalse(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_process_defaultõs %%(RRRTR¿RÂRÈRÏ(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR·Ïs
                 t TestProgNamecBs2eZdZd„Zd„Zd„Zd„ZRS(s]
    Test that %prog expands to the right thing in usage, version,
    and help strings.
    cCs|j|jƒ|ƒdS(N(R#t    get_usage(RR texpected_usage((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt assertUsagescCs|j|jƒ|ƒdS(N(R#t get_version(RR texpected_version((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt assertVersion scCstj}zstjjdddƒtjd<tdddƒ}d}|j||ƒ|j|d    ƒ|j||d
d ƒWd|tj(XdS( NR[R\sbaz.pyis    %prog ...tversions    %prog 1.2sUsage: baz.py ...
s
baz.py 1.2s
slOptions:
  --version   show program's version number and exit
  -h, --help  show this help message and exit
(    R?targvtostpathtjoinRRÓRÖRQ(Rt    save_argvR RÒ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_default_prognames
     cCsstddddddƒ}|jdƒ|jdƒd    }|j||ƒ|j|d
ƒ|j||d ƒdS( NtprogtthingyR×s    %prog 0.1RSs %prog arg args-hs    --versionsUsage: thingy arg arg
s
thingy 0.1s
(RRRÓRÖRQ(RR RÒ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_custom_progname s       (RRt__doc__RÓRÖRÝRà(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRÐs
            tTestExpandDefaultscBsbeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z RS(
cCsHtddƒ|_d|_d|_|jd|_|jd|_dS(NRÞttestsXUsage: test [options]
 
Options:
  -h, --help            show this help message and exit
s"read from FILE [default: %default]s:  -f FILE, --file=FILE  read from FILE [default: foo.txt]
s7  -f FILE, --file=FILE  read from FILE [default: none]
(RR t help_prefixt    file_helptexpected_help_filetexpected_help_none(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT-s        
cCs<|jjddddd|jƒ|j|j|jƒdS(Ns-fs--fileR¸sfoo.txtthelp(R R€RåRQRæ(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_option_default;s
cCsI|jjddd|jƒ|jjddƒ|j|j|jƒdS(Ns-fs--fileRètfilesfoo.txt(R R€Råt set_defaultRQRæ(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_parser_default_1As
cCsI|jjddd|jƒ|jjddƒ|j|j|jƒdS(Ns-fs--fileRèRêsfoo.txt(R R€RåRÀRQRæ(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_parser_default_2Gs
cCs6|jjddd|jƒ|j|j|jƒdS(Ns-fs--fileRè(R R€RåRQRç(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_defaultMs
cCs<|jjddddd|jƒ|j|j|jƒdS(Ns-fs--fileR¸Rè(R R€RRåRQRç(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_default_none_1Rs
cCsI|jjddd|jƒ|jjddƒ|j|j|jƒdS(Ns-fs--fileRèRê(R R€RåRÀRRQRç(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_default_none_2Xs
cCsP|jjddddƒ|jjddƒ|jd}|j|j|ƒdS(Ns-ps--probRès1blow up with probability PROB [default: %default]tprobg…ëQ¸…Û?sF  -p PROB, --prob=PROB  blow up with probability PROB [default: 0.43]
(R R€RÀRäRQ(RRO((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_float_default^s        cCsH|jjddddddƒd|jj_|j|j|jƒdS(Ns-fs--fileR¸sfoo.txtRès#read from FILE [default: *DEFAULT*]s    *DEFAULT*(R R€t    formattert default_tagRQRæ(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_alt_expandgs
cCsR|jjddddddƒd|jj_|jd}|j|j|ƒdS(Ns-fs--fileR¸sfoo.txtRèsread from %default files0  -f FILE, --file=FILE  read from %default file
(R R€RRóRôRäRQ(RRO((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_expandns( RRRTRéRìRíRîRïRðRòRõRö(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRâ,s                                        t TestStandardcBseZd„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„ZRS(cCsXtdddƒtddddddƒtd    d
d ƒg}td td |ƒ|_dS(Ns-aRCR¢s-bs--booRcR}tboos--fooR^tappendRSt option_list(RRRR (RR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT{s
 cCs|jdgdƒdS(Ns-as-a option requires an argument(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_required_valueƒscCs|jddgdƒdS(Ns-bt5xs&option -b: invalid integer value: '5x'(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_invalid_integer†scCs|jdgdƒdS(Ns--boo13sno such option: --boo13(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_such_optionŠscCs|jdgdƒdS(Ns--boo=x5s)option --boo: invalid integer value: 'x5'(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_long_invalid_integers cCs,|jgidd6dd6dd6gƒdS(NtaRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt
test_empty‘scCs>|jddddgidd6dd6ddgd6gƒdS(    Ns-aRs
--foo=blahs--foo=RRøRÆR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt"test_shortopt_empty_longopt_append”scCsD|jdddddgidd6dd6dddgd6gƒdS(    Ns--fooR\Rs--foo=xRRøRÃR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_long_option_append™s
 
cCs/|jdgidd6dd6dd6gƒdS(Ns-abctbcRRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_option_argument_joined s cCs2|jddgidd6dd6dd6gƒdS(Ns-at34RRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_option_argument_split¥scCs/|jdgidd6dd6dd6gƒdS(Ns-b34Ri"RøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt#test_option_argument_joined_integerªs cCs2|jddgidd6dd6dd6gƒdS(Ns-bs-5RiûÿÿÿRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt+test_option_argument_split_negative_integer¯scCs/|jdgidd6dd6dd6gƒdS(Ns--boo=13Ri RøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_long_option_argument_joined´s cCs2|jddgidd6dd6dd6gƒdS(Ns--boot111RioRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_long_option_argument_split¹scCs5|jddgidd6dd6dgd6gƒdS(Ns    --foo=bars-axyztxyzRRøR\R[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_long_option_short_option¾scCs5|jddgidd6dd6dgd6gƒdS(Ns--f=bars-axyzR RRøR\R[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_abbrev_long_optionÃscCsG|jjgƒ\}}|jjƒ}|jt|ƒt|ƒƒdS(N(R R!R¾R#R"(RR(R%Rœ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_defaultsÈscCs9|jjdddddddƒ|jdgd    ƒdS(
Ns--fozR^RlRCR¢R}R[s--f=bars%ambiguous option: --f (--foo, --foz?)(R R€R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_ambiguous_optionÍs  cCs>|jddddgidd6dd6dgd6gƒfdS(Ns-aR s--fooR\RRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_short_and_long_option_splitÔscCsA|jdddddgidd6dd6d    dgd
6gƒdS( Ns    --foo=bars-bt123s--fooR›Ri{RøR\R[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt*test_short_option_split_long_option_appendÙscCs;|jdddgidd6dd6dd6dgƒfdS(Ns-aR[R\RRø(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt*test_short_option_split_one_positional_argÞscCs{|jddddgidd6dd6dd6ddgƒf|jddddgidd6dd6dgd6gƒfdS(Ns-as--R[R\RRøs--foo(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt$test_short_option_consumes_separatorãs cCsA|jddddgidd6dd6dd6ddgƒfdS(    Ns-abs--s--fooR\RWRRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt&test_short_option_joined_and_separatorëscCs>|jddddgidd6dd6dgd6dgƒdS(    Ns-abt-s--fooR\RWRRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt"test_hyphen_becomes_positional_argðscCsD|jddddddgidd6dd    6d
dgd 6gƒdS( Ns-b3s-bt5s    --foo=bars--fooR›RiRøR\R[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_append_versus_appendõscCs2|jddgidd6dd6dd6gƒdS(Ns-as-b3RRøR[(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt&test_option_consumes_optionlike_stringúscCs-|jjdddƒ|jdgdƒdS(Ns-tR^R|s-testsno such option: -e(R R€R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt#test_combined_single_invalid_optionÿs cCsO|jjddddƒ|jdgidd6dd6dd6td    6gƒdS(
Nu-uu    --unicodeR^R|s-uRRøR[tunicode(R R€R+RR¼(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_add_option_accepts_unicodes (RRRTRûRýRþRÿRRRRRRR    R
R RRRRRRRRRRRRRR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR÷zs8                                                                                                            tTestBoolcBs5eZd„Zd„Zd„Zd„Zd„ZRS(c    CsRtddddddddƒtd    d
dd ddƒg}td |ƒ|_dS( Ns-vs    --verboseR^R|R}R~R¸Rs-qs--quietRRú(RRR (RR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT s cCs|jgidd6gƒdS(NRR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_bool_defaults    
cCs?|jdgidd6gƒ\}}|j|jtkƒdS(Ns-qiR~(R+R/R~RÎ(RR(R%((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_bool_falses 
cCs?|jdgidd6gƒ\}}|j|jtkƒdS(Ns-viR~(R+R/R~R¼(RR(R%((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_bool_true#s 
cCs'|jdddgidd6gƒdS(Ns-qvqs-qs-viR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_bool_flicker_on_and_off)s
(RRRTR!R"R#R$(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR  s
                t
TestChoicecBs,eZd„Zd„Zd„Zd„ZRS(c CsGtdtƒ|_|jjddddddddd    d
d gƒdS( NRSs-cR^RlRCReR}Rgtonettwotthree(RRR R€(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT/scCs*|jdddgidd6dgƒdS(Ns-cR&R Re(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_valid_choice4s
cCs|jdddgdƒdS(Ns-ctfourtabcsEoption -c: invalid choice: 'four' (choose from 'one', 'two', 'three')(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_invalid_choice9scCs^|jjddddddgƒ|jjdƒ}|j|jdƒ|j|jdƒdS(    Ns-ds    --defaultRgR*tfivetsixReRl(R R€RƒR#RCR^(RR¯((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_add_choice_option>s
(RRRTR)R,R/(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR%.s            t    TestCountcBs†eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „ZRS(c    Cs…tdtƒ|_tdddddƒ|_|jj|jƒ|jjddd    ddƒ|jjd
d dd ddd dƒdS(NRSs-vR^RbR}R~s    --verboseRCRcs-qs--quiett store_constRmi(RRR Rtv_optR€(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTFs cCs|jgidd6gƒdS(NR~(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRNscCs!|jdgidd6gƒdS(Ns-viR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_oneQscCs!|jdgidd6gƒdS(Ns-vvviR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_threeTscCs'|jdddgidd6gƒdS(Ns-viR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_three_apartWscCs$|jddgidd6gƒdS(Ns-vvvs --verbose=2iR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_override_amountZscCs'|jdddgidd6gƒdS(Ns-vvvs --verbose=2s-qiR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_override_quiet]scCs*|jddddgidd6gƒdS(Ns-vvvs --verbose=2s-qs-viR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_overriding`scCs*|jdddgidd6dgƒdS(Ns--quiett3s-viR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_interspersed_argsds
cCs:|jjƒ|jdddgidd6ddgƒdS(Ns--quietR9s-viR~(R tdisable_interspersed_argsR+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_no_interspersed_argsis 
cCs|jddgdƒdS(Ns-q3s-vsno such option: -3(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_no_such_optionoscCs|jddgdƒdS(Ns    --quiet=3s-vs$--quiet option does not take a value(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_option_no_valuerscCs1|jjddƒ|jgidd6gƒdS(NR~i(R RëR+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_with_defaultvscCs=|jjddƒ|jddddgidd6gƒdS(NR~is-vvvs --verbose=2s-qs-vi(R RëR+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_count_overriding_defaultzs(RRRTRR3R4R5R6R7R8R:R<R=R>R?R@(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR0Es                                                    tTestMultipleArgscBs5eZd„Zd„Zd„Zd„Zd„ZRS(c CsAtdtƒ|_|jjdddddddd    d
d ƒdS( NRSs-ps--pointR^RlRoiRCtfloatR}tpoint(RRR R€(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT€scCs6|jddddddgid d
6ddgƒdS( NR[s-pt1s2.5s-4.3R gð?g@g333333ÀRC(gð?g@g333333À(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_nargs_with_positional_args…s
cCs0|jdddddgid
d    6dgƒdS( Ns--points-1s2.5s-0R gð¿g@g€RC(gð¿g@g€(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_nargs_long_optŠs
cCs |jddddgdƒdS(Ns-ps1.0t2xs3.5s-option -p: invalid floating-point value: '2x'(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_nargs_invalid_float_valuescCs|jdddgdƒdS(Ns--points1.0s3.5s#--point option requires 3 arguments(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_nargs_required_values”s(RRRTRERFRHRI(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRAs
                tTestMultipleArgsAppendcBs5eZd„Zd„Zd„Zd„Zd„ZRS(c Cs‘tdtƒ|_|jjdddddddd    d
d ƒ|jjd d ddddddd
dƒ|jjddddd
dddƒdS(NRSs-ps--pointR^RlRoiRCRBR}RCs-fs--fooRùiRcR[s-zs--zerot append_constRmi(ii(RRR R€(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT™s  cCsC|jdddddddgidd6ddgd 6dgƒdS(Ns-ft4s-3RÆs--fooRDt666RCiiýÿÿÿiišR[(iiýÿÿÿ(iiš(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_nargs_append¢scCs|jdgdƒdS(Ns-f4,3s-f option requires 2 arguments(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt!test_nargs_append_required_values§s cCs.|jddgidd6dgd6gƒdS(Ns--foo=3RLRCiiR[(ii(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_nargs_append_simple«scCs=|jdddddgidd6d d d gd
6gƒdS(Ns--zeros--fooR9RLs-zRCiiiR[(ii(ii(ii(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_nargs_append_const°s(RRRTRNRORPRQ(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRJ˜s
                    t TestVersioncBseZd„Zd„ZRS(cCsmtdtddƒ|_tj}z9tjjtjddƒtjd<|j    dgdƒWd|tj(XdS(    NRSR×s    %prog 0.1R[R\is    --versionsbar 0.1
(
RRR R?RØRÙRÚRÛtcurdirRJ(RRÜ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_version¶s  
"cCs)tdtƒ|_|jdgdƒdS(NRSs    --versionsno such option: --version(RRR R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_versionÀs (RRRTRU(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRRµs    
tTestConflictingDefaultscBs)eZdZd„Zd„Zd„ZRS(s4Conflicting default values: the last one should win.c
Cs1tdtdddddddƒgƒ|_dS(    NRús-vR^R|R}R~R¸i(RRR (R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTÉscCs@|jjdddddddƒ|jgidd6gƒdS(Ns-qR^RR}R~R¸i(R R€R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_defaultÍscCs@|jjdddddddƒ|jgidd6gƒdS(Ns-qR^RR}R~R¸(R R€RR+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_default_noneÒs(RRRáRTRWRX(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRVÇs        tTestOptionGroupcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCstdtƒ|_dS(NRS(RRR (R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTØscCs\t|jdƒ}|jj|ƒ|jdddddƒ|jdgidd6gƒdS(    NtSpams--spamR^R|Rèsspam spam spam spamitspam(RR tadd_option_groupR€R+(Rtgroup((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt!test_option_group_create_instanceÛs
cCs|j|jjddƒdS(Ns!not an OptionGroup instance: None(RLR R\R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_add_group_no_groupâscCs |j|jjdddƒdS(Nsinvalid arguments(RLR R\R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_add_group_invalid_argumentsæscCsDt|jdƒ}tƒ|_|j|jj|fdtdƒdS(NRZs"invalid OptionGroup (wrong parser)(RR RR9R\RR“(RR]((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_add_group_wrong_parserês cCsX|jjdddƒ}|jdƒ|jdddƒ|j|jjdƒ|ƒdS(NsGroup 2t descriptionsSome more optionstBacons--baconRCRc(R R\t    set_titleR€R/tget_option_group(RR]((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_group_manipulateðs
     (RRRTR^R_R`RaRf(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRY×s                     tTestExtendAddTypescBsKeZd„Zd„Zdefd„ƒYZd„Zd„Zd„ZRS(cCs]tdtd|jƒ|_|jjddddddƒ|jjdd    dd
dd
ƒdS( NRSRÌs-aRCR¢R}Rs-fs--fileRê(RRtMyOptionR R€R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTús cCsTtjjtjƒr(tjtjƒn(tjjtjƒrPtjtjƒndS(N(RÙRÚtisdirRtTESTFNtrmdirtisfiletunlink(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttearDownsRhcBs:eZd„ZejdZejejƒZeed<RS(cCsNtjj|ƒs%td|ƒ‚n%tjj|ƒsJtd|ƒ‚n|S(Ns%s: file does not exists%s: not a regular file(RÙRÚtexistsR Rl(R®R¯R°((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt
check_files
Rê(sfile(RRRpRR´RµR¶(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRhs     cCsJttjdƒjƒ|jdtjdgitjd6dd6gƒdS(Ntws--files-afooRêR[R(topenRRjtcloseR+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_filetype_okscCs'|jdtjdgdtjƒdS(Ns--files-afoos%s: file does not exist(R=RRj(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_filetype_noexistscCs7tjtjƒ|jdtjdgdtjƒdS(Ns--files-afoos%s: not a regular file(RÙtmkdirRRjR=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_filetype_notfiles(    RRRTRnRRhRtRuRw(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRgùs                 tTestExtendAddActionscBs9eZd„Zdefd„ƒYZd„Zd„ZRS(c    Cs=|jddddddddƒg}td    |ƒ|_dS(
Ns-as--appleR^textendRCR¢R}tappleRú(RhRR (RR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT%sRhcBs8eZejdZejdZejdZd„ZRS(RycCsZ|dkr7|jdƒ}|j|gƒj|ƒntj|||||||ƒdS(NRyt,(tsplitt ensure_valueRyRt take_action(RR^R}R¯R°RžR tlvalue((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR~/s
 (sextend(sextend(sextend(RRRtACTIONSt STORE_ACTIONSt TYPED_ACTIONSR~(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRh*s   cCs-|jddgidddgd6gƒdS(Ns    -afoo,bars --apple=blahR[R\RÆRz(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_extend_add_action7scCs6|jddddgiddddgd6gƒdS(    Ns-aR[s-abars --apple=x,yR\RÃRÅRz(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_extend_add_action_normal<s(RRRTRRhRƒR„(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRx$s        t TestCallbackcBs,eZd„Zd„Zd„Zd„ZRS(c Cs^tddddd|jƒtddddd|jdddd    ƒg}td
|ƒ|_dS( Ns-xR^Rqs-fs--fileRCR¢R}tfilenameRú(RRt process_optRR (RR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTDs         cCs@|dkr|j|jdgƒ|j|jgƒ|j||jkƒ|j|dkƒ|jt|jƒidd6ƒd|j_n¯|dkr+|j|jdgƒ|j|jdgƒ|j||jkƒ|j|dƒ|jt|jƒidd6dd6ƒt    |j|j
|ƒn|j d|ƒdS(    Ns-xR†i*s--files-fR[RÃs!Unknown option %r in process_opt.( R#R…R†R/R RR"RžRÃtsetattrR}R2(RR®R¯R°tparser_((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR‡Qs   'cCs+|jddgidd6dd6gƒdS(Ns-xs
--file=fooR[R†i*RÃ(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt test_callbackesc Csatdtƒ}|jdƒ|jdddddd„dd    d
d ƒd }|j||ƒdS( NRSs-hs-ts--testR^RqcSsdS(N(R(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt<lambda>qsRCR¢RèR[s%Options:
  -t TEST, --test=TEST  foo
(RRRR€RQ(RR RO((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_callback_helpjs (RRRTR‡RŠRŒ(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR…Cs            tTestCallbackExtraArgscBs#eZd„Zd„Zd„ZRS(cCsUtddddd|jddtfddd    d
d gƒg}td |ƒ|_dS( Ns-ps--pointR^RqRtiRCR¢R}tpointsR¸Rú(Rt process_tupleRcRR (RR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTzs
    cCsŸ|j|dƒ|j|tkƒ|dkrB|j|dƒn|dkra|j|dƒntt||jdƒƒƒ}t|j|jƒj    |ƒdS(Nis-ps1,2,3s--points4,5,6R{(
R#R/RcR`tmapR|RARžR}Rù(RR®R¯R°R‰tlenRC((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRs  cCs-|jdddgid d gd
6gƒdS( Ns-p1,2,3s--points4,5,6iiiiiiRŽ(iii(iii(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_callback_extra_argss(RRRTRR’(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRys         tTestCallbackMeddleArgscBs,eZd„Zd„Zd„Zd„ZRS(c
Cs\gtdddƒD]-}tt|ƒddd|jddƒ^q}td|ƒ|_dS(NiÿÿÿÿiúÿÿÿR^RqR}tthingsRú(trangeRR,t    process_nRR (RRÃR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT“sCcCs•t|dƒ}|j}t|ƒ|krE|jd||fƒn|jj|jgƒ}|jt|d|!ƒƒ|j    j|ƒ|d|5dS(Nis$Expected %d arguments for %s option.i(
RctrargsR‘R2RžR}R}RùR`tlargs(RR®R¯R°R‰RoR—R}((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR–šs    cCs<|jddddddgid
d gd6dd    gƒdS( Ns-1R[s-3R\R›tquxR”ii(sfoo(sbarsbazR™(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_callback_meddle_args¥scCs-|jdddgidgd6dgƒdS(Ns-2R[s--R”i(sfoos--(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt#test_callback_meddle_args_separatorªs (RRRTR–RšR›(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR“’s            tTestCallbackManyArgscBs#eZd„Zd„Zd„ZRS(c Csjtddddddd|jddƒtd    d
dddd d|jdd ƒg}td |ƒ|_dS(Ns-as--appleR^RqRoiRCR¢s-bs--bobiRcRú(Rt process_manyRR (RR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT°s
cCs€|dkr|j|dƒn]|dkr>|j|dƒn>|dkr]|j|dƒn|d kr||j|dƒndS(Ns-aR[R\s--appletdingtdongs-biiis--bobifýÿÿi*i(sfoosbar(RžRŸ(iii(ifýÿÿi*i(R#(RR®R¯R°R‰((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR·s    cCsO|jddddddddd    d
d d d dgidd6dd6gƒdS(Ns-aR[R\s--appleRžRŸs-bRDt2R9s--bobs-666RÊt0Rztbob(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_many_argsÁs
(RRRTRR£(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRœ¯s        
tTestCallbackCheckAbbrevcBs#eZd„Zd„Zd„ZRS(cCs/tƒ|_|jjdddd|jƒdS(Ns    --foo-barR^Rq(RR R€t check_abbrev(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTÉs cCs|j|dƒdS(Ns    --foo-bar(R#(RR®R¯R°R ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR¥ÎscCs|jdgigƒdS(Ns--foo(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_abbrev_callback_expansionÑs(RRRTR¥R¦(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR¤Ès        tTestCallbackVarArgscBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(c Csstdddddddƒtdd    d
dd ƒtd d d    dd|jddƒg}tdtd|ƒ|_dS(Ns-aRCRcRoiR}Rs-bR^R|RWs-cs
--callbackRqtcRSRú(Rt variable_argsRRR (RR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTÕs  cCs¿|j|dkƒg}|j}x€|r¤|d}|d dkrWt|ƒdks‰|d dkrt|ƒdkr|ddkrPq%|j|ƒ|d=q%Wt|j|j|ƒdS(Niis--iR(R/RR—R‘RùRˆRžR}(RR®R¯R°R R—targ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR©Ýs        
"2  cCsA|jdddddgid d6dd    6ddgd
6gƒdS( Ns-a3s-5s
--callbackR[R\iiûÿÿÿRRWR¨(iiûÿÿÿ(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_variable_argsëscCsJ|jddddddgidd6td6dddgd    6dgƒdS(
Ns-ct37s--txxxs-bthelloRRWR¨(R+RR¼(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt%test_consume_separator_stop_at_optionðs
 
cCsG|jdddddgidd6dd6dddgd6dgƒdS(    NR®s-cR[RR\RRWR¨(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt%test_positional_arg_and_variable_args÷s
 
cCs8|jdddgidd6td6dgd6gƒdS(Ns-cR[s-bRRWR¨(R+RR¼(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_stop_at_optionþscCs |jddddgdƒdS(Ns-cR9s-5s-asno such option: -5(R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_stop_at_invalid_options(    RRRTR©R«R¯R°R±R²(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR§Ôs                        t ConflictBasecBseZd„Zd„ZRS(c    Cs@tddddddddƒg}td    td
|ƒ|_dS( Ns-vs    --verboseR^RbR}R~Rèsincrement verbosityRSRú(RRRR (RR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT
s cCsd|j_dS(Ni(Ržt show_version(RR®R¯R°R ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR´s(RRRTR´(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR³    s    t TestConflictcBs2eZdZd„Zd„Zd„Zd„ZRS(s9Use the default conflict resolution for Optik 1.2: error.cCs]|j|d
idd6|jd6dd6tdƒ}|j|jdƒ|j|jd    ƒdS( Ns-vs    --versionRqR^s show versionRès5option -v/--version: conflicting option string(s): -vs conflicting option string(s): -vs -v/--version(s-vs    --version(R9R´R    R#Rt    option_id(RR3R7((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytassertTrueconflict_errors
    cCs|j|jjƒdS(N(R·R R€(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_error scCs&t|jdƒ}|j|jƒdS(NsGroup 1(RR R·R€(RR]((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_error_group#scCs#|j|jjddtdƒdS(NR[s'invalid conflict_resolution value 'foo'(sfoo(R9R tset_conflict_handlerRR“(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_no_such_conflict_handler's(RRRáR·R¸R¹R»(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRµs
            tTestConflictResolvecBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(c    CsItj|ƒ|jjdƒ|jjddddd|jddƒdS(Ntresolves-vs    --versionR^RqRès show version(R³RTR RºR€R´(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT.s cCsË|jjdƒ}|jjdƒ}|jjdƒ}|j||kƒ|j||k    ƒ|j|jdgƒ|j|jdgƒ|j|jdgƒ|j|jgƒ|j|jdgƒdS(Ns-vs    --verboses    --version(R RƒR/R#R†R…(RR2t verbose_optt version_opt((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_resolve4scCs|jdgdƒdS(Ns-hs}Options:
  --verbose      increment verbosity
  -h, --help     show this help message and exit
  -v, --version  show version
(RJ(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_resolve_helpAs cCs(|jdgidd6dd6gƒdS(Ns-vR~iR´(R+R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_resolve_short_optIs cCs!|jdgidd6gƒdS(Ns    --verboseiR~(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_resolve_long_optNs 
cCs+|jddgidd6dd6gƒdS(Ns    --verboses    --versioniR~R´(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_resolve_long_optsSs(RRRTRÀRÁRÂRÃRÄ(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyR¼-s                     tTestConflictOverridecBs,eZd„Zd„Zd„Zd„ZRS(c Csvtdtƒ|_|jjdƒ|jjddddddd    d
ƒ|jjdddd d d ddd    dƒdS(NRSR½s-ns    --dry-runR^R|R}tdry_runRèsdon't do anythingR1Rmi*s dry run mode(RRR RºR€(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRTYs cCsB|jjdƒ}|j|jdgƒ|j|jdgƒdS(Ns    --dry-runs-n(R RƒR#R…R†(RR¯((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_override_optscscCs|jdgdƒdS(Ns-hsXOptions:
  -h, --help     show this help message and exit
  -n, --dry-run  dry run mode
(RJ(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_override_helphs cCs!|jdgidd6gƒdS(Ns-ni*RÆ(R+(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_conflict_override_argsos 
(RRRTRÇRÈRÉ(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRÅXs    
       sSUsage: bar.py [options]
 
Options:
  -a APPLE           throw APPLEs at basket
  -b NUM, --boo=NUM  shout "boo!" NUM times (in order to frighten away all the
                     evil spirits that cause trouble and mayhem)
  --foo=FOO          store FOO in the foo list for later fooing
  -h, --help         show this help message and exit
sSUsage: bar.py [options]
 
Options:
  -a APPLE           throw APPLEs at basket
  --boo=NUM, -b NUM  shout "boo!" NUM times (in order to frighten away all the
                     evil spirits that cause trouble and mayhem)
  --foo=FOO          store FOO in the foo list for later fooing
  --help, -h         show this help message and exit
sWUsage
=====
  bar.py [options]
 
Options
=======
-a APPLE           throw APPLEs at basket
--boo=NUM, -b NUM  shout "boo!" NUM times (in order to frighten away all the
                   evil spirits that cause trouble and mayhem)
--foo=FOO          store FOO in the foo list for later fooing
--help, -h         show this help message and exit
s}Usage: bar.py [options]
 
Options:
  -a APPLE           throw APPLEs at basket
  -b NUM, --boo=NUM  shout "boo!" NUM times (in order to
                     frighten away all the evil spirits
                     that cause trouble and mayhem)
  --foo=FOO          store FOO in the foo list for later
                     fooing
  -h, --help         show this help message and exit
tTestHelpcBskeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z RS( cCs|jdƒ|_dS(NiP(t make_parserR (R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT¨sc Cs¢tddddddddd    ƒtd
d dd dd ddddƒtdddddddddƒg}tjƒ$}t|ƒ|d<td|ƒSWdQXdS(Ns-aRCR¢R}RtmetavartAPPLERèsthrow APPLEs at baskets-bs--booRcRøtNUMseshout "boo!" NUM times (in order to frighten away all the evil spirits that cause trouble and mayhem)s--fooR^RùR[s*store FOO in the foo list for later fooingtCOLUMNSRú(RRtEnvironmentVarGuardR,R(RtcolumnsR(tenv((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRË«s  cCsŽt|ƒtjkr?|jjtjƒ}|j|dƒ}ntj}z3t    j
j ddƒtjd<|j dg|ƒWd|tj(XdS(NtreplaceR[sbar.pyis-h( RCRDt UnicodeTypeR t _get_encodingR?R@tencodeRØRÙRÚRÛRJ(RR<R>RÜ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pytassertHelpEqualsÀs
cCs|jtƒdS(N(R×t_expected_help_basic(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt    test_helpÍscCs!|jjdƒ|jtƒdS(NsUsage: %prog [options](R t    set_usageR×RØ(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_help_old_usageÐscCs d|jj_|jtƒdS(Ni(R Rót short_firstR×t_expected_help_long_opts_first(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_help_long_opts_firstÔscCs?tjƒ-}d|d<tƒ|j_|jtƒWdQXdS(Nt80RÏ(RRÐRR RóR×t_expected_help_title_formatter(RRÒ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_help_title_formatterØs
cCs#|jdƒ|_|jtƒdS(Ni<(RËR R×t_expected_help_short_lines(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_wrap_columnsÞscCsEtdtƒ|_|jjdddddƒd}|j|ƒdS(NRSs-aR^R|Rèuolé!uKOptions:
  -h, --help  show this help message and exit
  -a          olé!
(RRR R€R×(Rtexpect((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_help_unicodeåscCs/tdtddƒ|_d}|j|ƒdS(NRSRbuolé!u>olé!
 
Options:
  -h, --help  show this help message and exit
(RRR R×(RRä((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_help_unicode_descriptionïs  cCs‚|jjdƒt|jddƒ}|jdddddƒ|jj|ƒd    }|j|ƒd
|j_|j|d ƒdS( Ns`This is the program description for %prog.  %prog has an option group as well as single options.sDangerous OptionssZCaution: use of these options is at your own risk.  It is believed that some of them bite.s-gR^R|Rès Group option.sTUsage: bar.py [options]
 
This is the program description for bar.py.  bar.py has an option group as
well as single options.
 
Options:
  -a APPLE           throw APPLEs at basket
  -b NUM, --boo=NUM  shout "boo!" NUM times (in order to frighten away all the
                     evil spirits that cause trouble and mayhem)
  --foo=FOO          store FOO in the foo list for later fooing
  -h, --help         show this help message and exit
 
  Dangerous Options:
    Caution: use of these options is at your own risk.  It is believed
    that some of them bite.
 
    -g               Group option.
s Please report bugs to /dev/null.s"
Please report bugs to /dev/null.
(R tset_descriptionRR€R\R×tepilog(RR]Rä((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_help_description_groupsús              ( RRRTRËR×RÙRÛRÞRáRãRåRæRé(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRʧs                                    
    tTestMatchAbbrevcBseZd„Zd„ZRS(cCs9|jtdidd6dd6dd6dd6ƒdƒdS(Ns--fs--fozs--foos--fie(R#R R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_match_abbrev!s  
 
cCsDd}idd6dd6dd6}|jt||fdtdƒdS(Ns--fs--fozs--foos--fies,ambiguous option: --f (--fie, --foo, --foz?)(RR9R R
(RR§twordmap((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_match_abbrev_error)s
(RRRëRí(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRê s    tTestParseNumbercBs,eZd„Zd„Zd„Zd„ZRS(cCs<tƒ|_|jjddtƒ|jjddtƒdS(Ns-nRCs-l(RR R€Rctlong(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRT2s cCsT|jtdtfittjdƒƒ|jtdtfittjdƒƒdS(NRs!invalid literal for int().*: '?'?t0xOoopss)invalid literal for long().*: '?0xOoops'?(R9RRcR“tretcompileRï(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_parse_num_fail7scCsš|jtdtƒdƒ|jtdtƒdƒ|jtdtƒdƒ|jtdtƒdƒ|jtd    tƒd
ƒ|jtd tƒd ƒdS( NR¡it0x10it0XAl
t010lt0b11it0bl(R#RRcRï(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_parse_num_okAs cCs—|jddddgidd6dd6gƒ|jdd    d
gid d6d d6gƒ|jd gdƒ|jdgdƒ|jddgdƒdS(Ns-nRÊs-lt0x20i*R¹i tlt0b0101s-l010iis-n008s'option -n: invalid integer value: '008's-l0b0123s/option -l: invalid long integer value: '0b0123't0x12xs.option -l: invalid long integer value: '0x12x'(R+R=(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyttest_numeric_optionsIs  (RRRTRóRùRþ(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyRî1s        
   cCstjtƒdS(N(Rt run_unittestR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt    test_mainVst__main__iii€Q(GR?RÙRñRµRDtunittestRRãRtoptparseRRRRRRRR    R
R R R RRCRòR.t    ExceptionRRtTestCaseRRRR{RšR¡R¬R±R²R·RÐRâR÷R R%R0RARJRRRVRYRgRxR…RR“RœR¤R§R³RµR¼RÅRØRÝRàRâRÊRêRîRR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_optparse.pyt<module>    sn      L ˜|N"    
3*N‘#:"+6 5
+'  y%