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
O\¬Qc@spddlZddlZddlZddlZddlZddlmZdejfd„ƒYZdejfd„ƒYZ    de    fd„ƒYZ
d    e    fd
„ƒYZ d e    fd „ƒYZ d e
fd„ƒYZ de fd„ƒYZdejfd„ƒYZdejfd„ƒYZde fd„ƒYZdejfd„ƒYZd„ZedkrleƒndS(iÿÿÿÿN(t test_supportt
SortedDictcBsDeZd„Zd„Zd„Zd„Zd„ZeZd„ZRS(cCs|jjƒ}|jƒ|S(N(tdatatitemstsort(tselftresult((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR s
cCs|jjƒ}|jƒ|S(N(RtkeysR(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRs
cCs'|jƒ}g|D]}|d^qS(Ni(R(RRti((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pytvaluess cCst|jƒƒS(N(titerR(R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt    iteritemsscCst|jƒƒS(N(R
R(R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pytiterkeysscCst|jƒƒS(N(R
R    (R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt
itervaluess(    t__name__t
__module__RRR    R R t__iter__R (((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR
s                    t TestCaseBasecBs¤eZeZdd„Zdd„Zd„Zd„Zd„Z    d„Z
d„Z d„Z d„Z d    „Zd
„Zd „Zd „Zd „Zd„Zd„ZRS(cCsI|dkr'|jd|jƒ|_n|j|d|jƒ|_|jS(Ntallow_no_value(tNonet config_classRtcf(Rtdefaults((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt    newconfig#s
  cCs/|j|ƒ}tj|ƒ}|j|ƒ|S(N(RtStringIOtreadfp(RtstringRRtsio((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt
fromstring+s cCsàd}|jr|d7}n|j|ƒ}|jƒ}|jƒddddddd    g}|jru|jd
ƒn|jƒ|j}|||ƒ||jdd ƒd ƒ||jd    d ƒd ƒ||jdd ƒd ƒ||jdd ƒdƒ||jddƒdƒ|jr7||jd
dƒdƒn|jd|j    dƒdƒ|j
|j dd ƒdƒ|j |j dd ƒdƒ|j |j dd ƒdƒ|jtj|j dd ƒ||jdd ƒdƒdS(NsQ[Foo Bar]
foo=bar
[Spacey Bar]
foo = bar
[Commented Bar]
foo: bar ; comment
[Long Line]
foo: this line is much, much longer than my editor
   likes it.
[Section\with$weird%characters[    ]
[Internationalized Stuff]
foo[bg]: Bulgarian
foo=Default
foo[en]=English
foo[de]=Deutsch
[Spaces]
key with spaces : value
another with spaces = splat!
s[NoValue]
option-without-value
s Commented BarsFoo BarsInternationalized Stuffs    Long LinesSection\with$weird%characters[    tSpacess
Spacey BartNoValuetfootbarskey with spacestvaluesanother with spacesssplat!soption-without-valueRs3__name__ "option" should not be exposed by the API!s4remove_option() failed to report existence of options'remove_option() failed to remove optionsIremove_option() failed to report non-existence of option that was removedsNo Such Sections7this line is much, much longer than my editor
likes it.(RRtsectionsRtappendt assertEqualtgetRt assertNotIntoptionst
assertTruet remove_optiont assertFalset
has_optiont assertRaisest ConfigParsertNoSectionError(Rt config_stringRtLtEteq((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt
test_basic1sL    
 
        
          cCsË|jƒ}|jdƒ|jdƒ|jƒ}|jƒ|j}||ddgƒ|jdddƒ||jdƒdgƒ||jddƒddƒ|j|j    ddƒƒ|jdddƒx*dD]"}|j|j    d|ƒd ƒqÓW||jdƒd    gƒ||jdƒdgƒ|j
ddƒ||jdƒgƒ|j d ƒ}||jdƒdgƒ||jddƒdƒ|j ddidd6ƒ}|j|j    ddƒƒdS(NtAtatBR!tbs@could not locate option, expecting case-insensitive option namessA-Bs    A-B valuesa-bsA-bsa-Bs9has_option() returned false for option which should exists,[MySection]
Option: first line
   second line
t    MySectiontoptiontOptionsfirst line
second lines[section]
nekey=nevalue
RtkeytsectiontKey(sa-bsA-bsa-BsA-B( Rt add_sectionR"RR$tsetR'R%R(R+R)R(RRR0R2topt((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_case_sensitivity{s8    
           cCsn|jidd6ƒ}|j|jddƒddƒ|jidd6ƒ}|j|jddƒddƒdS(NtBarRtDEFAULTtFoos@could not locate option, expecting case-insensitive option namess<could not locate option, expecting case-insensitive defaults(RR$R%(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_default_case_sensitivityžscCsm|jƒ|jtjdƒ|jtjdƒ|jtjdƒ|jtjdƒ|jtjdƒdS(Ns[Foo]
  extra-spaces: splat
s[Foo]
  extra-spaces= splat
s![Foo]
:value-without-option-name
s![Foo]
=value-without-option-name
s No Section!
(Rt parse_errorR-t ParsingErrortMissingSectionHeaderError(R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_parse_errors¨s
     cCs,tj|ƒ}|j||jj|ƒdS(N(RR,RR(RtexctsrcR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRFµscCs³|jƒ}|j|jƒgdƒ|j|jdƒdƒ|jtj|jdƒ|jtj|j    dddƒ|j
tjddƒ|j dƒ|j
tj ddƒdS(Ns0new ConfigParser should have no defined sectionsRDs5new ConfigParser should have no acknowledged sectionsRR R!( RR$R"R*t has_sectionR,R-R.R'R?t    get_errorR>t NoOptionError(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_query_errors¹s     cCsOy|jj||ƒWn|k
r-}|SX|jd|j|jfƒdS(Nsexpected exception type %s.%s(RR%tfailRR(RRJR<R9te((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRMÈs     cCs„|jdƒ}xntddƒD]]}|j|jdd|ƒƒ|j|jdd|ƒƒ|jt|jdd|ƒqWdS(Ns{[BOOLTEST]
T1=1
T2=TRUE
T3=True
T4=oN
T5=yes
F1=0
F2=FALSE
F3=False
F4=oFF
F5=nO
E1=2
E2=foo
E3=-1
E4=0.1
E5=FALSE AND MOREiitBOOLTESTst%dsf%dse%d(RtrangeR(t
getbooleanR*R,t
ValueError(RRtx((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt test_booleanÑs        cCs6|jƒ}|jdƒ|jtj|jdƒdS(NRD(RR>R,R-tDuplicateSectionError(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_weird_errorsês   cCszd}|jr|d7}n|j|ƒ}tjƒ}|j|ƒd}|jr`|d7}n|j|jƒ|ƒdS(Nss[Long Line]
foo: this line is much, much longer than my editor
   likes it.
[DEFAULT]
foo: another very
 long line
s![Valueless]
option-without-value
su[DEFAULT]
foo = another very
   long line
 
[Long Line]
foo = this line is much, much longer than my editor
   likes it.
 
s"[Valueless]
option-without-value
 
(RRRtwriteR$tgetvalue(RR/Rtoutputt expect_string((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt
test_writeðs    
          
cCsÏ|jdƒ}dtfd„ƒY}|jdddƒ|jdd|dƒƒ|jdddƒ|jdd|dƒƒytWntk
r˜n3X|jddtdƒƒ|jddtdƒƒdS(Ns[sect]
option1=foo
tmystrcBseZRS((RR(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR_stsecttoption1tsplattoption2(RtstrR?tunicodet    NameError(RRR_((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_set_string_typess cCstjdƒ}|jƒ}|j|dgƒ}|j||gƒ|j|jddƒdƒ|jƒ}|j|ƒ}|j||gƒ|j|jddƒdƒ|jƒ}|jdgƒ}|j|gƒ|jƒ}|jgƒ}|j|gƒdS(Ns cfgparser.1snonexistent-filesFoo BarRtnewbar(RtfindfileRtreadR$R%(Rtfile1Rt parsed_files((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_read_returns_file_list's    cCs|jddidd6ƒS(Nsê[Foo]
bar=something %(with1)s interpolation (1 step)
bar9=something %(with9)s lots of interpolation (9 steps)
bar10=something %(with10)s lots of interpolation (10 steps)
bar11=something %(with11)s lots of interpolation (11 steps)
with11=%(with10)s
with10=%(with9)s
with9=%(with8)s
with8=%(With7)s
with7=%(WITH6)s
with6=%(with5)s
With5=%(with4)s
WITH4=%(with3)s
with3=%(with2)s
with2=%(with1)s
with1=with
 
[Mutual Recursion]
foo=%(bar)s
bar=%(foo)s
 
[Interpolation Error]
name=%(reference)s
Rs %(__name__)stgetname(R(R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pytget_interpolation_config=scCsO|jddidd6ƒ}t|jdƒƒ}|jƒ|j||ƒdS(NsY[section]
name = value
key: |%(name)s| 
getdefault: |%(default)s|
getname: |%(__name__)s|Rs    <default>tdefaultR<(RtlistRRR$(RtexpectedRR0((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pytcheck_items_configYs 
N(RRtFalseRRRRR3RARERIRFRORMRWRYR^RgRmRoRs(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR s"      J    #    
                               $            tConfigParserTestCasecBs;eZejZeZd„Zd„Zd„Zd„Z    RS(cCs­idtj6dtj6}|jƒ}|j}||jddƒdƒ||jddƒdƒ||jddƒdƒ||jdd    ƒd
ƒ|jtjdd ƒdS( Ns5something %(with11)s lots of interpolation (11 steps)s    %(with1)sRDRnR s%something with interpolation (1 step)tbar9s.something with lots of interpolation (9 steps)tbar10s/something with lots of interpolation (10 steps)tbar11(R-tSafeConfigParserRoR$R%RMtInterpolationDepthError(RtrawvalRR2((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_interpolationjs
      cCs_|jƒ|jtjddƒ}|j|jdƒ|j|jdƒ|j|jdƒdS(NsInterpolation Errortnamet    reference(RoRMR-tInterpolationErrorR$R~R<R9(RRQ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt test_interpolation_missing_valuezs 
  cCs |jd d d ddgƒdS(NRps    <default>t
getdefaults |<default>|Rns    |section|R;s|value|R}R!(sdefaults    <default>(Rs |<default>|(sgetnames    |section|(skeys|value|(snamesvalue(Rs(R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt
test_items‚s
    c Csç|jƒ}|jdƒ|jdddƒ|jddddddddd    d
d g    ƒ|jdd id d6dd 6dd6ƒ|jdddƒ|jddƒ|j|jdddtƒdƒ|jt|jddƒ|j|jdddtƒddddddd    d
d g    ƒ|jt|jddƒ|j|jdd dtƒid d6dd 6dd6ƒ|jt|jdd ƒ|j|jdddtƒdƒ|jt|jdddt    ƒ|j|jddƒdƒdS(Ns
non-stringtintiRqiiiiii s%(tdictgn†ðù!    @tpis%(list)tstring_with_interpolations%(list)ssno-valuetraw( RR>R?R$R%tTrueR,t    TypeErrorRURtR(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_set_nonstring_types‰s*  . ""  (
RRR-RRˆRR|R€R‚RŠ(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRufs                 tMultilineValuesTestCasecBs>eZejZdjddƒZd„Zd„Zd„ZRS(sSI'm having spam spam spam spam spam spam spam beaked beans spam spam spam and spam!t s    
cCs¡|jƒ}xftdƒD]X}dj|ƒ}|j|ƒx3tdƒD]%}|j|dj|ƒ|jƒqHWqWttjdƒ}|j    |ƒWdQXdS(Nids    section{}i
s lovely_spam{}tw(
RRStformatR>R?twonderful_spamtopenRtTESTFNRZ(RRRtstjtf((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pytsetUp¦s  'cCstjtjƒdS(N(tostunlinkRR‘(R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttearDown°scCs`|jƒ}ttjƒ}|j|ƒWdQX|j|jddƒ|jjddƒƒdS(Ntsection8t lovely_spam4s    
s
(    RRRR‘RR$R%Rtreplace(Rt cf_from_fileR”((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt test_dominating_multiline_values³s
 (    RRR-RR›RR•R˜R(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR‹ s          
   tRawConfigParserTestCasecBs,eZejZd„Zd„Zd„ZRS(cCs–|jƒ}|j}||jddƒdƒ||jddƒdƒ||jddƒdƒ||jddƒd    ƒ||jdd
ƒd ƒdS( NRDRns %(__name__)sR s*something %(with1)s interpolation (1 step)Rvs3something %(with9)s lots of interpolation (9 steps)Rws5something %(with10)s lots of interpolation (10 steps)Rxs5something %(with11)s lots of interpolation (11 steps)(RoR$R%(RRR2((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR|¿s     cCs |jd d d ddgƒdS(NRps    <default>Rs |%(default)s|Rns|%(__name__)s|R;s
|%(name)s|R}R!(sdefaults    <default>(s
getdefaults |%(default)s|(sgetnames|%(__name__)s|(skeys
|%(name)s|(snamesvalue(Rs(R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR‚Ìs
    c Csè|jƒ}|jdƒ|jdddƒ|jddddddddd    d
gƒ|jdd id d 6ƒ|j|jddƒdƒ|j|jddƒddddddd    d
gƒ|j|jdd ƒid d 6ƒdS(Ns
non-stringRƒiRqiiiiii R„gn†ðù!    @R…(RR>R?R$R%(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRŠÓs  +(RRR-tRawConfigParserRR|R‚RŠ(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRž¼s            tSafeConfigParserTestCasecBs>eZejZd„Zd„Zd„Zd„Zd„Z    RS(cCsK|jdƒ}|j|jddƒdƒ|j|jddƒdƒdS(NsW[section]
option1=xxx
option2=%(option1)s/xxx
ok=%(option1)s/%%s
not_ok=%(option2)s/%%sR<toksxxx/%stnot_oks
xxx/xxx/%s(RR$R%(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_safe_interpolationâscCsÎ|jdƒ}|j|jddƒdƒ|jt|jdddƒ|jt|jdddƒ|jt|jdddƒ|j|jddƒdƒ|jddd    ƒ|j|jddƒd
ƒdS( Ns[sect]
option1=foo
R`RaRs%foosfoo%sf%ooRcsfoo%%barsfoo%bar(RR$R%R,RUR?(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt#test_set_malformatted_interpolationìscCsÁ|jdƒ}|jt|jdddƒ|jt|jdddƒ|jt|jddtƒƒ|jt|jdddƒ|jt|jdddƒ|jt|jddtƒƒdS(Ns[sect]
option1=foo
R`Raigð?Rc(RR,R‰R?tobject(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRŠüscCs&|jƒ}|jt|jdƒdS(NRp(RR,RUR>(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_add_section_default_1s cCs&|jƒ}|jt|jdƒdS(NRC(RR,RUR>(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_add_section_default_2 s (
RRR-RyRR£R¤RŠR¦R§(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR ßs         
           tSafeConfigParserTestCaseNoValuecBseZeZRS((RRRˆR(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR¨st TestChainMapcBseZd„ZRS(c
Cs7tddddƒ}tddddƒ}|jƒ}|j|ƒtj||ƒ}|j|jƒtƒ|jt    |jƒƒt    |jƒƒƒ|jt    |j
ƒƒt    |j
ƒƒƒ|jt    |j ƒƒt    |j ƒƒƒ|jt    |ƒt    |ƒƒ|j||ƒ|jg|D]}||^q|j
ƒƒdj ƒ}|jg|D]}|j |d    ƒ^qUg|D]}|j |d    ƒ^qwƒ|jg|D]}||k^q£g|D]}||k^q¿ƒtjƒM|jg|D]}|j|ƒ^qòg|D]}|j|ƒ^qƒWdQXdS(
Ntreditgreeniitblueisred green blue black browni
(R„tcopytupdateR-t    _ChainmaptassertIsInstanceRRqR$R?R    RtsplitR%Rtcheck_py3k_warningsthas_key(Rtd1td2tdcombtcmtktklist((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_issue_12717s(  (((- (&"  %(RRRº(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR©stIssue7005TestCasecBs/eZdZdZd„Zd„Zd„ZRS(srTest output when None is set() as a value and allow_no_value == False.
 
    http://bugs.python.org/issue7005
 
    s[section]
option = None
 
cCsR|dtƒ}|jdƒ|jdddƒtjƒ}|j|ƒ|jƒS(NRR<R9(RtR>R?RRRZR[(RRtcpR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pytprepare4s    cCs)|jtjƒ}|j||jƒdS(N(R½R-R$texpected_output(RR\((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_none_as_value_stringified=scCs)|jtjƒ}|j||jƒdS(N(R½R-RŸR$R¾(RR\((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt"test_none_as_value_stringified_rawAs(RRt__doc__R¾R½R¿RÀ(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyR»+s
            tSortedTestCasecBseZdd„Zd„ZRS(cCs"|jd|dtƒ|_|jS(NRt    dict_type(RRR(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRGscCsC|jdƒtjƒ}|jj|ƒ|j|jƒdƒdS(Ns [b]
o4=1
o3=2
o2=3
o1=4
[a]
k=v
s,[a]
k = v
 
[b]
o1 = 4
o2 = 3
o3 = 2
o4 = 1
 
(RRRRZR$R[(RR\((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt test_sortedKs
  N(RRRRRÄ(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRÂFs tExceptionPicklingTestCasecBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z RS( sBTests for issue #13760: ConfigParser exceptions are not picklable.cCsoddl}tjdƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|jt|ƒt|ƒƒdS(NiÿÿÿÿR!(tpickleR-tErrortdumpstloadsR$tmessagetrepr(RRÆte1tpickledte2((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt
test_errorbs  cCs›ddl}tjdƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j|jƒ|jt    |ƒt    |ƒƒdS(NiÿÿÿÿR<(
RÆR-R.RÈRÉR$RÊtargsR<RË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_nosectionerrorjs cCs´ddl}tjddƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j    |j    ƒ|jt
|ƒt
|ƒƒdS(NiÿÿÿÿR9R<( RÆR-RNRÈRÉR$RÊRÐR<R9RË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_nooptionerrorts cCs›ddl}tjdƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j|jƒ|jt    |ƒt    |ƒƒdS(NiÿÿÿÿR<(
RÆR-RXRÈRÉR$RÊRÐR<RË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_duplicatesectionerrors cCs·ddl}tjdddƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j    |j    ƒ|jt
|ƒt
|ƒƒdS(NiÿÿÿÿR9R<tmsg( RÆR-RRÈRÉR$RÊRÐR<R9RË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_interpolationerror‰s cCsÐddl}tjddddƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j    |j    ƒ|j|j
|j
ƒ|jt |ƒt |ƒƒdS(NiÿÿÿÿR9R<R{R~( RÆR-tInterpolationMissingOptionErrorRÈRÉR$RÊRÐR<R9R~RË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt$test_interpolationmissingoptionerror”s   cCs·ddl}tjdddƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j    |j    ƒ|jt
|ƒt
|ƒƒdS(NiÿÿÿÿR9R<RÔ( RÆR-tInterpolationSyntaxErrorRÈRÉR$RÊRÐR<R9RË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_interpolationsyntaxerror¡s cCs·ddl}tjdddƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j    |j    ƒ|jt
|ƒt
|ƒƒdS(NiÿÿÿÿR9R<R{( RÆR-RzRÈRÉR$RÊRÐR<R9RË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_interpolationdeptherror¬s      cCsáddl}tjdƒ}|jddƒ|jddƒ|jddƒ|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j    |j    ƒ|j|j
|j
ƒ|jt |ƒt |ƒƒdS(    Niÿÿÿÿtsourceitline1itline2itline3( RÆR-RGR#RÈRÉR$RÊRÐtfilenameterrorsRË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_parsingerror¸s cCsÍddl}tjdddƒ}|j|ƒ}|j|ƒ}|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j    |j    ƒ|j|j
|j
ƒ|jt |ƒt |ƒƒdS(NiÿÿÿÿRßi{tline( RÆR-RHRÈRÉR$RÊRÐRâRßtlinenoRË(RRÆRÌRÍRÎ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyttest_missingsectionheadererrorÆs ( RRRÁRÏRÑRÒRÓRÕR×RÙRÚRáRä(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyRÅ_s        
       
                   c
Cs)tjtttttttt    t
ƒ    dS(N( Rt run_unittestRuR‹RžR R¨RÂR»R©RÅ(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt    test_mainÓst__main__(R-RR–tunittesttUserDictttestRRtTestCaseRRuR‹RžR R¨R©R»RÂRÅRæR(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_cfgparser.pyt<module>s(     ÿG:#2t