diff options
author | Georg Brandl <georg@python.org> | 2009-04-27 16:42:58 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-27 16:42:58 (GMT) |
commit | 1f9fa31cb54546ef0129a81b0257dda9a313b528 (patch) | |
tree | 706a3627741134ee7d1317216b80e78ef0d9e1c1 /Lib/test | |
parent | f3532df236481cebd458a35b82d803a4af750c1c (diff) | |
download | cpython-1f9fa31cb54546ef0129a81b0257dda9a313b528.zip cpython-1f9fa31cb54546ef0129a81b0257dda9a313b528.tar.gz cpython-1f9fa31cb54546ef0129a81b0257dda9a313b528.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')
-rw-r--r-- | Lib/test/test_cfgparser.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index a8418ca..12fd00c 100644 --- a/Lib/test/test_cfgparser.py +++ b/Lib/test/test_cfgparser.py @@ -424,6 +424,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") |