mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Test section name using some strange characters, including a backslash
(SF bug #132288).
This commit is contained in:
parent
d4df94b56d
commit
cc1f951b4c
1 changed files with 7 additions and 2 deletions
|
@ -11,8 +11,12 @@ def basic(src):
|
|||
cf.readfp(sio)
|
||||
L = cf.sections()
|
||||
L.sort()
|
||||
verify(L == ['Commented Bar', 'Foo Bar',
|
||||
'Internationalized Stuff', 'Spacey Bar'],
|
||||
verify(L == [r'Commented Bar',
|
||||
r'Foo Bar',
|
||||
r'Internationalized Stuff',
|
||||
r'Section\with$weird%characters[' '\t',
|
||||
r'Spacey Bar',
|
||||
],
|
||||
"unexpected list of section names")
|
||||
|
||||
# The use of spaces in the section names serves as a regression test for
|
||||
|
@ -138,6 +142,7 @@ foo=bar
|
|||
foo = bar
|
||||
[Commented Bar]
|
||||
foo: bar ; comment
|
||||
[Section\with$weird%characters[""" '\t' r"""]
|
||||
[Internationalized Stuff]
|
||||
foo[bg]: Bulgarian
|
||||
foo=Default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue