Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4df94b commit cc1f951Copy full SHA for cc1f951
1 file changed
Lib/test/test_cfgparser.py
@@ -11,8 +11,12 @@ def basic(src):
11
cf.readfp(sio)
12
L = cf.sections()
13
L.sort()
14
- verify(L == ['Commented Bar', 'Foo Bar',
15
- 'Internationalized Stuff', 'Spacey Bar'],
+ verify(L == [r'Commented Bar',
+ r'Foo Bar',
16
+ r'Internationalized Stuff',
17
+ r'Section\with$weird%characters[' '\t',
18
+ r'Spacey Bar',
19
+ ],
20
"unexpected list of section names")
21
22
# The use of spaces in the section names serves as a regression test for
@@ -138,6 +142,7 @@ def expect_parse_error(exctype, src):
138
142
foo = bar
139
143
[Commented Bar]
140
144
foo: bar ; comment
145
+[Section\with$weird%characters[""" '\t' r"""]
141
146
[Internationalized Stuff]
147
foo[bg]: Bulgarian
148
foo=Default
0 commit comments