#5741: dont disallow double percent signs in SafeConfigParser.set() keys.
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py
index 600d2dc..a0d8051 100644
--- a/Lib/test/test_cfgparser.py
+++ b/Lib/test/test_cfgparser.py
@@ -434,6 +434,10 @@
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")