summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-14 15:30:31 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-14 15:30:31 (GMT)
commitcc1f951b4c4e100979897655c4b8c12f3334936e (patch)
treebc39e73018a84988f0631c4f99721e75313556a0 /Lib/test
parentd4df94b56d762c8d68e186c256a6d4b741044046 (diff)
downloadcpython-cc1f951b4c4e100979897655c4b8c12f3334936e.zip
cpython-cc1f951b4c4e100979897655c4b8c12f3334936e.tar.gz
cpython-cc1f951b4c4e100979897655c4b8c12f3334936e.tar.bz2
Test section name using some strange characters, including a backslash
(SF bug #132288).
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_cfgparser.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py
index f0228b2..e9d4ee5 100644
--- a/Lib/test/test_cfgparser.py
+++ b/Lib/test/test_cfgparser.py
@@ -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