summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cfgparser.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-12 17:26:19 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-12 17:26:19 (GMT)
commitdcfed0e316243b2635ccfee3553eb5eacd3d2135 (patch)
treec81f131eed099aaf17d512300b47fc72dc0aeb95 /Lib/test/test_cfgparser.py
parent8a31eba939c8b91a03c03fa80641ef1f0ee53b1a (diff)
downloadcpython-dcfed0e316243b2635ccfee3553eb5eacd3d2135.zip
cpython-dcfed0e316243b2635ccfee3553eb5eacd3d2135.tar.gz
cpython-dcfed0e316243b2635ccfee3553eb5eacd3d2135.tar.bz2
Merged revisions 71537 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71537 | georg.brandl | 2009-04-12 19:24:11 +0200 (So, 12 Apr 2009) | 1 line #5741: dont disallow double percent signs in SafeConfigParser.set() keys. ........
Diffstat (limited to 'Lib/test/test_cfgparser.py')
-rw-r--r--Lib/test/test_cfgparser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py
index a8b5d7c..173f40f 100644
--- a/Lib/test/test_cfgparser.py
+++ b/Lib/test/test_cfgparser.py
@@ -434,6 +434,10 @@ class SafeConfigParserTestCase(ConfigParserTestCase):
self.assertEqual(cf.get('sect', "option1"), "foo")
+ # bug #5741: double percents are *not* malformed
+ cf.set("sect", "option2", "foo%%bar")
+ self.assertEqual(cf.get("sect", "option2"), "foo%bar")
+
def test_set_nonstring_types(self):
cf = self.fromstring("[sect]\n"
"option1=foo\n")